This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
importre
importjson
frompathlibimportPath
importrequests
# path = Path('cid.json')
# contents = path.read_text()
# video_ids = json.loads(contents)
# print(len(video_ids))
defget_danmaku(cids):
headers={
'User-Agent':'Mozilla/5.0 (Windows NT 10.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'