Skip to content

Instantly share code, notes, and snippets.

@MarcosGad
Forked from HussamAdil/youtube-dl cheat-sheet
Created November 19, 2021 07:30
Show Gist options
  • Select an option

  • Save MarcosGad/c7d6f12654abe5fd5425d12f09c6a77b to your computer and use it in GitHub Desktop.

Select an option

Save MarcosGad/c7d6f12654abe5fd5425d12f09c6a77b to your computer and use it in GitHub Desktop.
Download youtube playlist with youtube-dl cheat-sheet
## install youtube-dl
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
## To List all available formats before download :
youtube-dl -F playlisturl
example : youtube-dl -F https://www.youtube.com/playlist?list=PL7mt2FDjAkPepYrMofOwTwxQwJSlZ8N-a
## Then you can select a proper format from the above list. pass a number referring to the video quality as a parameter
example : youtube-dl -f 22 https://www.youtube.com/playlist?list=PL7mt2FDjAkPepYrMofOwTwxQwJSlZ8N-a
the program will start download in current directory :)
Have fun :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment