How to download Facebook playlists with youtube-dl

youtube-dl

I use youtube-dl to download Facebook videos by passing the video URL. When Facebook plays a video, it shows a list of videos that play next. Is it possible to use youtube-dl to download all these videos automatically?

Best Answer

At the moment you can't.

The 'official' playlist on facebook is created by owner of the videos (see the playlist section at FACEBOOK/facebook/videos for example) and they can choose to share it as a link, however there is no listed format.

The videos in the same playlist might have the same prefix in URL

FACEBOOK/facebook/videos/vl.515712155263726/10154651089866729/

FACEBOOK/facebook/videos/vl.515712155263726/10154597969851729/

However, there is no offical link to such list (id vl.515712155263726).

When you view a video directly, it depends on the link, for example the same video when visited as

FACEBOOK/video.php?v=10154651089866729

and

FACEBOOK/facebook/videos/vl.515712155263726/10154651089866729/

will give you different next video (in what you might think as the next item in 'your' current playlist).

The source code of youtube-dl also show nothing to support facebook playlist for the time being (see https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/facebook.py).

So you are out of luck.


Note: Replace FACEBOOK with actual link to the site.

Related Question