Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube_dl.utils.ExtractorError: Cannot parse data for Facebook video #26958

Closed
6 tasks done
GoMeister opened this issue Oct 21, 2020 · 12 comments
Closed
6 tasks done

youtube_dl.utils.ExtractorError: Cannot parse data for Facebook video #26958

GoMeister opened this issue Oct 21, 2020 · 12 comments

Comments

@GoMeister
Copy link

GoMeister commented Oct 21, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.09.20
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

PASTE VERBOSE LOG HERE

eric@eric-Latitude-E5510:~/tmp$ youtube-dl --recode-video mkv -k https://www.facebook.com/alice.offley/videos/10164224184305084/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--recode-video', 'mkv', '-k', 'https://www.facebook.com/alice.offley/videos/10164224184305084/', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.09.20
[debug] Python version 3.8.5 (CPython) - Linux-5.4.0-52-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] 10164224184305084: Downloading webpage
[facebook] 10164224184305084: Downloading webpage
[facebook] 10164224184305084: Downloading webpage
ERROR: Cannot parse data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 532, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 482, in _real_extract
_, info_dict = self._extract_from_url(
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 380, in _extract_from_url
raise ExtractorError('Cannot parse data')
youtube_dl.utils.ExtractorError: Cannot parse data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

WRITE DESCRIPTION HERE

youtube_dl.utils.ExtractorError: Cannot parse data for Facebook video, url in log above.

@october262
Copy link

this link - https://www.facebook.com/alice.offley/videos/10164224184305084/
says content not available right now.

@GoMeister
Copy link
Author

GoMeister commented Oct 21, 2020 via email

@GoMeister
Copy link
Author

GoMeister commented Oct 21, 2020 via email

@october262
Copy link

still not playable for me. is the video a private video ??
if you can play the video click the 3 dots ... in the upper right hand
corner of the video and see if there's an option to download/copy the URL of the video.

@GoMeister
Copy link
Author

GoMeister commented Oct 21, 2020 via email

@october262
Copy link

try youtube-dl --force-generic-extractor URL
or youtube-dl --username (your user name) --password (your password) URL

@Mattwmaster58
Copy link

Wow, interestingly the generic extractor works just fine! Used --cookies to download a private video successfully.

@GoMeister
Copy link
Author

GoMeister commented Oct 22, 2020 via email

@GoMeister
Copy link
Author

GoMeister commented Oct 22, 2020 via email

@GoMeister
Copy link
Author

GoMeister commented Oct 22, 2020 via email

@Mattwmaster58
Copy link

@GoMeister I suspect the generic extractor won't work with --username and --password but haven't tried. I have also run into being forced to change my Facebook password when using the aforementioned options. I found success using --cookies to specify a cookies.txt file that I generated by logging into Facebook in a browser. I also used --add-header to add the UA of the browser I used to login but I'm unsure if that was necessary.

Interestingly, using --username + --password failed not using --force-default-extractor and made it so I had to change my facebook password. But if I used --add-header to specify a browser UA then I didn't have to change my facebook password.

@Nex4rius
Copy link

Nex4rius commented Nov 20, 2020

I have another video that isn't working. I tried it with and without credentials and with the --force-generic-extractor and everything failed with the "cannot parse data" error
https://www.facebook.com/andrea.bondi.50/videos/4903472349693254

I tried --force-default-extractor but it says "error: no such option"

Another example:
https://www.facebook.com/groups/212288662233960/permalink/3233778396751623/
and alternative link to same video also fails:
https://www.facebook.com/jamini.de/videos/3281333008662998

ThirumalaiK pushed a commit to ThirumalaiK/youtube-dl that referenced this issue Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants