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

Download Facebook videos from feed as playlist #16221

Closed
forthrin opened this issue Apr 19, 2018 · 3 comments
Closed

Download Facebook videos from feed as playlist #16221

forthrin opened this issue Apr 19, 2018 · 3 comments

Comments

@forthrin
Copy link

@forthrin forthrin commented Apr 19, 2018

Please follow the guide below

  • I've verified and I assure that I'm running youtube-dl 2018.04.16
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other
$ youtube-dl --verbose 'https://www.facebook.com/SKAMaustin/'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.facebook.com/SKAMaustin/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.04.16
[debug] Python version 2.7.10 (CPython) - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.4.2, ffprobe 3.4.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] SKAMaustin: Requesting header
WARNING: Falling back on generic information extractor.
[generic] SKAMaustin: Downloading webpage
[generic] SKAMaustin: Extracting information
[redirect] Following redirect to https://www.facebook.com/SKAMaustin/?_fb_noscript=1
[generic] ?_fb_noscript=1: Requesting header
WARNING: Falling back on generic information extractor.
[generic] ?_fb_noscript=1: Downloading webpage
[generic] ?_fb_noscript=1: Extracting information
ERROR: Unsupported URL: https://www.facebook.com/SKAMaustin/?_fb_noscript=1
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2216, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2542, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2531, in _XML
    parser.feed(text)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 3, column 1530
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 789, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 440, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3166, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://www.facebook.com/SKAMaustin/?_fb_noscript=1

For some reason, these Facebook videos fall back to "generic extractor" / "UnsupportedError" even though Facebook is generally supported by youtube-dl.

@forthrin
Copy link
Author

@forthrin forthrin commented Apr 25, 2018

OK, I found out that the problem is the videos are embedded in the feed, with no direct link available to the user. The videos later were posted with their own URL, and then the downloading works as normal. So the request would be to support downloads from a feed, in the form of "playlist download", which I suppose would be useful to people who want to stay updated on all videos posted in a feed.

@forthrin forthrin changed the title SKAM videos on Facebook fail as "unsupported" Download Facebook videos from main feed as playlist Apr 25, 2018
@forthrin forthrin changed the title Download Facebook videos from main feed as playlist Download Facebook videos from feed as playlist Apr 25, 2018
@ohhai
Copy link

@ohhai ohhai commented May 22, 2018

Faced that on v2018.05.18
Yes, "Unsupported URL" error appears on the link from feed (like https://www.facebook.com/events/123/permalink/321/).
I can copy another link by right-clicking viewers button and then "copy video URL at current time" removing time. This link looks like https://www.facebook.com/pagename/videos/123/ and it fails differently (while live stream is in progress, this is the reason, I guess):

[youtube] dash_sd_src: Downloading video info webpage
WARNING: Unable to extract video title
[youtube] dash_sd_src: Extracting video information
WARNING: unable to extract uploader name
WARNING: unable to extract uploader nickname
WARNING: unable to extract video duration; 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.
ERROR: This video is unavailable.

UPD: might be my fail (-F instead of -f).
In general, just note that alternative link is available from the very beginning. However, additional formats (audio only, for example) are added only after the end of streaming.

@forthrin
Copy link
Author

@forthrin forthrin commented May 8, 2019

Not an issue for me personally anymore, since SKAM Austin is published on NRK.

@forthrin forthrin closed this May 8, 2019
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
2 participants
You can’t perform that action at this time.