question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] ParsingError: Unable to parse video data.

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
artictioncommented, Feb 14, 2021

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.

0reactions
xenovacommented, Feb 18, 2021

Perfect!!! Thank you so much - this is invaluable information! 🔥

Unable to parse initial video data. <title>YouTube</title><script src="https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=en" async defer nonce="3ci5Sy5DF1zXl5zRJ9aekQ"></script><style nonce="3ci5Sy5DF1zXl5zRJ9aekQ">html{height:100%;margin:0;padding:0;border:0;font-size:100%;background:transparent}body{margin:0;padding:0;border:0;font:12px "YouTube Noto",Roboto,arial,sans-serif;background:#f1f1f1;height:100%}#captcha-page{text-align:center;height:100%;white-space:nowrap;word-break:normal}.g-recaptcha{display:inline-block}#captcha-page-content{vertical-align:middle;display:inline-block}#captcha-page-vertical-align{height:100%;display:inline-block;vertical-align:middle}p{margin:auto;color:#333;font-size:16px;white-space:normal;text-shadow:0 0 0 transparent,0 1px 1px #fff}</style>

Sorry for the interruption. We have been receiving a large volume of requests from your network.

To continue with your YouTube experience, please fill out the form below.


<style nonce="3ci5Sy5DF1zXl5zRJ9aekQ">#yt-masthead{margin:15px auto;width:440px;margin-top:25px}#logo-container{margin-right:5px;float:left;cursor:pointer;text-decoration:none}.logo{background:no-repeat url("//www.gstatic.com/youtube/img/branding/youtubelogo/1x/youtubelogo_30.png");width:125px;height:30px;cursor:pointer;display:inline-block}#masthead-search{display:flex;margin-top:3px;max-width:650px;overflow:hidden;padding:0;position:relative}.search-button{border-left:0;-moz-border-radius-topleft:0;border-top-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;float:right;height:29px;padding:0;border:solid 1px transparent;border-color:#d3d3d3;background:#f8f8f8;color:#333;cursor:pointer}.search-button:hover{border-color:#c6c6c6;background:#f0f0f0;box-shadow:0 1px 0 rgba(0,0,0,0.10)}.search-button-content{border:none;display:block;opacity:.6;padding:0;text-indent:-10000px;background:no-repeat url(//www.gstatic.com/youtube/src/web/htdocs/img/search.png);background-size:auto;width:15px;height:15px;box-shadow:none;margin:0 25px}#masthead-search-terms-border{flex:1 1 auto;border:1px solid #ccc;box-shadow:inset 0 1px 2px #eee;background-color:#fff;font-size:14px;height:29px;line-height:30px;margin:0 0 2px;overflow:hidden;position:relative;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color .2s ease;transition:border-color .2s ease}#masthead-search-terms{background:transparent;border:0;font-size:16px;height:100%;left:0;margin:0;outline:none;padding:2px 6px;position:absolute;width:100%;-moz-box-sizing:border-box;box-sizing:border-box}</style>
ID
Search

I don’t suppose there is any text below “ID Search”?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parse Error: What It Is and How to Fix It - Lifewire
When you get a parse error on your Android phone, it means the phone wasn't able to install your app. Check out our...
Read more >
Best Solutions to Solve 4K Video Downloader Cannot ...
Fix 4K Downloader Parsing Error ... 4k Video Downloader requires an active internet connection to be able to download the video. If this...
Read more >
Solved: Excel workbook parsing error - Unable to parse the...
The workbook was pretty old, created on OpenOffice a while back. I recreated the workbook from scratch using a blank .xlsx file and...
Read more >
[Solved] How to Fix There Was A Problem Parsing the Package
Here is a tip: Download FoneDog Android Data Backup and Restore to ... The parsing error actually comes when you are trying to...
Read more >
Failed to parse netParameter file - python - Stack Overflow
! wget "https://pjreddie.com/media/files/yolov3.weights". Run this command and save the yolo.weight file in yolov3-coco .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found