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

Support downloading all videos from a Facebook page #6518

Open
10 tasks done
dreamflasher opened this issue Mar 12, 2023 · 8 comments
Open
10 tasks done

Support downloading all videos from a Facebook page #6518

dreamflasher opened this issue Mar 12, 2023 · 8 comments
Labels
site-enhancement Feature request for some website triage Untriaged issue

Comments

@dreamflasher
Copy link

dreamflasher commented Mar 12, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

No response

Example URLs

https://www.facebook.com/dieanstalt.kabarettarchiv/videos (lists all videos of a facebook page)
https://www.facebook.com/watch/1104963652946528/264543514160928 (a playlist)

Provide a description that is worded well enough to be understood

For YouTube it's possible to download a whole channel or a single playlist. It would be great if for Facebook Pages the same would be supported: Download all videos of a facebook page and download a full playlist of a facebook page.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', 'https://www.facebook.com/dieanstalt.kabarettarchiv/videos']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 6.0-essentials_build-www.gyan.dev (setts), ffprobe 6.0-essentials_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421
yt-dlp is up to date (stable@2023.03.04)
[generic] Extracting URL: https://www.facebook.com/dieanstalt.kabarettarchiv/videos
[generic] videos: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] videos: Extracting information
[debug] Looking for embeds
ERROR: Unsupported URL: https://www.facebook.com/dieanstalt.kabarettarchiv/videos
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1518, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1594, in __extract_info
  File "yt_dlp\extractor\common.py", line 694, in extract
  File "yt_dlp\extractor\generic.py", line 2510, in _real_extract
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.facebook.com/dieanstalt.kabarettarchiv/videos
@dreamflasher dreamflasher added site-enhancement Feature request for some website triage Untriaged issue labels Mar 12, 2023
@jimsy3

This comment was marked as spam.

@ministerinmarin
Copy link

ministerinmarin commented Mar 18, 2023

and can you add the same thing/feature for all videos on a youtube channel ? like you paste only the channel link and it will download all videos.... or maybe needs a Gui for that feature and then you could select/tick the needed videos with a mouse?

Actually, you can download a whole YouTube channel with available listed videos by simply running yt-dlp in your command prompt.

ytdlp https://www.youtube.com/channel/[channel_id] and you can insert additional commands from the prompt.

@ministerinmarin
Copy link

@dreamflasher I would support having a manner of downloading all the videos, or a playlist of videos, from a Facebook page (personal profiles would work differently though) just like downloading a YouTube channel's set of videos. However, has Facebook attempted to thwart requests from users to download videos with their API via yt-dlp?

@dreamflasher
Copy link
Author

Afaik they do, but not in this case: for the linked page you do not need to be logged in, it's a public page and you can access all videos without authentication.
So I believe this is allowed according to yt-dlp rules?

@dreamflasher
Copy link
Author

@pukkandan would you be down for adding support for facebook pages and playlists?

I tried to understand how it's done for youtube channels and playlists, but didn't understand it well enough to make a PR myself: https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/extractor/youtube.py#L6379

@doxatotheo

This comment was marked as off-topic.

@bashonly

This comment was marked as off-topic.

@gosuimbalyndh
Copy link

gosuimbalyndh commented Dec 16, 2023

@pukkandan would you be down for adding support for facebook pages and playlists?

I tried to understand how it's done for youtube channels and playlists, but didn't understand it well enough to make a PR myself: https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/extractor/youtube.py#L6379

Thank you much
I don't quite understand: how to download Facebook story? I try the method here but not working: https://www.youtube.com/watch?v=RtFmeJQ5Jlg

For instances the URL of stories video: https://www.facebook.com/stories/1052288...xxxx
Can we download that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

6 participants