chat-downloader: [BUG] ParsingError: Unable to parse video data.

Basic information

  • Python version: 3.9.0

Describe the bug

Tracebacks happening with the usual command I’ve used.

If running from the command line, provide the following:

  1. The command used (including the verbose tag, -v): python -m chat_replay_downloader --message_types "text_message paid_message membership_item" https://www.youtube.com/watch?v=aqXFQuxgo5c -o aqXFQuxgo5c1.txt

Otherwise, if using the python module, provide the following:

  1. A minimal reproducible example:
 -m chat_replay_downloader --message_types "text_message paid_message membership_item" https://www.youtube.com/watch?v=aqXFQuxgo5c -o aqXFQuxgo5c1.txt
  1. Output, traceback or other information relating to the bug:
  File "C:\Users\arthur\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\arthur\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\arthur\AppData\Local\Programs\Python\Python39\lib\site-packages\chat_replay_downloader\__main__.py", line 4, in <module>
    chat_replay_downloader.main()
  File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\chat_replay_downloader\cli.py", line 217, in main
    chat = downloader.get_chat(**chat_params)
  File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\chat_replay_downloader\chat_replay_downloader.py", line 128, in get_chat
    info = correct_site.get_chat(**params)
  File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\chat_replay_downloader\sites\youtube.py", line 1307, in get_chat
    return self.get_chat_by_video_id(match.group('id'), kwargs)
  File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\chat_replay_downloader\sites\youtube.py", line 1273, in get_chat_by_video_id
    initial_info = self._get_initial_video_info(video_id)
  File "C:\Users\x\AppData\Local\Programs\Python\Python39\lib\site-packages\chat_replay_downloader\sites\youtube.py", line 782, in _get_initial_video_info
    raise ParsingError(
chat_replay_downloader.errors.ParsingError: Unable to parse video data. Please try again.

Expected behavior

Retrieving chat for “title”… [00:01:04]Username: Message types [00:01:05]Username: Message types

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (11 by maintainers)

Most upvoted comments

GREAT IT WORKS AFTER 2 DAYS, I should’ve reported sooner. At first I did think it was a connection problem but since it worked perfectly 2 days before the bug begins and I haven’t been changing connections, I crossed that out. I also thought about bad gateways but if I remember correctly, that should show in the tracebacks so I reported this bug.

Thank you so much! The --cookies worked perfectly. Also to @atnjqt, I was completely aware to that so no worries.