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

Fails to extract video from a (public) Facebook post #26941

Closed
michael-myers opened this issue Oct 20, 2020 · 0 comments
Closed

Fails to extract video from a (public) Facebook post #26941

michael-myers opened this issue Oct 20, 2020 · 0 comments
Labels

Comments

@michael-myers
Copy link

@michael-myers michael-myers commented Oct 20, 2020

Checklist

  • I'm reporting a broken site support
  • 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 issues including closed ones

Similar to issue #26823 but in this case, the verbose log does not mention only available for registered users

Verbose log

% youtube-dl --verbose "https://www.facebook.com/GymMeme/posts/3025431024227465"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.facebook.com/GymMeme/posts/3025431024227465']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.09.20
[debug] Python version 2.7.16 (CPython) - Darwin-19.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] 3025431024227465: Downloading webpage
ERROR: Unable to extract single video id; 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 479, in _real_extract
    video_id = self._search_regex(r'video_id:\s*"([0-9]+)"', webpage, 'single video id')
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1010, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract single video id; 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

I confirmed using a private browsing tab that this Facebook post is available in a browser without any authentication, and should be available to youtube-dl. The video is in a public post in a public group.

If the regex here is self._search_regex(r'video_id:\s*"([0-9]+)"' then it might've broken on a new naming scheme. See the screenshot below.

Screen Shot 2020-10-19 at 9 27 06 PM

@dstftw dstftw closed this Oct 20, 2020
@dstftw dstftw added the duplicate label Oct 20, 2020
@ytdl-org ytdl-org deleted a comment from october262 Oct 20, 2020
@ytdl-org ytdl-org locked and limited conversation to collaborators Oct 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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