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

Facebook is broken. unable to extract video ids #24831

Closed
5 tasks done
someziggyman opened this issue Apr 17, 2020 · 4 comments
Closed
5 tasks done

Facebook is broken. unable to extract video ids #24831

someziggyman opened this issue Apr 17, 2020 · 4 comments

Comments

@someziggyman
Copy link

someziggyman commented Apr 17, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.03.24
  • 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 issues including closed ones

Verbose log

youtube-dl -v -F https://m.facebook.com/100037160205931/posts/223407958907876/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'https://m.facebook.com/100037160205931/posts/223407958907876/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.16 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[facebook] 223407958907876: Downloading webpage
ERROR: Unable to extract video ids; 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 530, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 474, in _real_extract
webpage, 'video ids', group='ids'),
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1005, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video ids; 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

@jaimebl
Copy link

jaimebl commented Apr 17, 2020

It looks you're not using the right video url. Try:

youtube-dl -v -F https://www.facebook.com/alex.drone.1840/videos/223407775574561/

EDITED: Apparently with /posts/ url you should be able to get that video too however it´s not finding video_ids in posts webpage

@vidaritos
Copy link

vidaritos commented Apr 17, 2020

@someziggyman You have to right-click on the video, it will show a "Show URL to video" or something similar in your language, a text-field will appear with the link to use with youtube-dl. I tried this today, it works.

@someziggyman
Copy link
Author

Appreciate your advice, guys. Yeah, you're right, those helped and I've successfully downloaded that video with a different URL. However, maybe folks maintaining youtube-dl will do some tiny optimizations and support all URL types for facebook. Anyway, thanks again for your help. Youtube-dl community is awesome.

@Natim
Copy link

Natim commented Jun 15, 2020

Same issue today, while https://www.facebook.com/jebosseenGD/posts/3041440072603152 didn't download https://www.facebook.com/watch/?v=3402937886406323

I don't know if there is something we can do to somehow automate the translation from post containing the video to video itself.

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