Youtube - downloading a playlist - youtube-dl

后端 未结 7 1905
囚心锁ツ
囚心锁ツ 2021-01-29 17:31

I am trying to download all the videos from the playlist:

I am using youtube-dl for this and the command is:

youtube-dl -citk –format mp4 –yes-playlist          


        
7条回答
  •  遥遥无期
    2021-01-29 17:55

    Download YouTube playlist videos in separate directory indexed by video order in a playlist

    $ youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s'  https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re
    

    Download all playlists of YouTube channel/user keeping each playlist in separate directory:

    $ youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists
    

    Video Selection:

    youtube-dl is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.

    $ youtube-dl [OPTIONS] URL [URL...]
    
    --playlist-start NUMBER          Playlist video to start at (default is 1)
    
    --playlist-end NUMBER            Playlist video to end at (default is last)
    
    --playlist-items ITEM_SPEC       Playlist video items to download. Specify
                                     indices of the videos in the playlist
                                     separated by commas like: "--playlist-items
                                     1,2,5,8" if you want to download videos
                                     indexed 1, 2, 5, 8 in the playlist. You can
                                     specify range: "--playlist-items
                                     1-3,7,10-13", it will download the videos
                                     at index 1, 2, 3, 7, 10, 11, 12 and 13.

提交回复
热议问题