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

Open
GoMeister opened this issue Oct 21, 2020 · 11 comments
Open

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

GoMeister opened this issue Oct 21, 2020 · 11 comments

Comments

@GoMeister
Copy link

@GoMeister 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

@october262 october262 commented Oct 21, 2020

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

@GoMeister
Copy link
Author

@GoMeister GoMeister commented Oct 21, 2020

@GoMeister
Copy link
Author

@GoMeister GoMeister commented Oct 21, 2020

@october262
Copy link

@october262 october262 commented Oct 21, 2020

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 GoMeister commented Oct 21, 2020

@october262
Copy link

@october262 october262 commented Oct 22, 2020

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

@Mattwmaster58
Copy link

@Mattwmaster58 Mattwmaster58 commented Oct 22, 2020

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

@GoMeister
Copy link
Author

@GoMeister GoMeister commented Oct 22, 2020

@GoMeister
Copy link
Author

@GoMeister GoMeister commented Oct 22, 2020

@GoMeister
Copy link
Author

@GoMeister GoMeister commented Oct 22, 2020

@Mattwmaster58
Copy link

@Mattwmaster58 Mattwmaster58 commented Oct 22, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.