Skip to content

Instantly share code, notes, and snippets.

@czonios
Last active June 13, 2017 09:43
Show Gist options
  • Save czonios/e9323e037c26431bfca152f685fd8514 to your computer and use it in GitHub Desktop.
Save czonios/e9323e037c26431bfca152f685fd8514 to your computer and use it in GitHub Desktop.
Download playlist from youtube, soundcloud and others.

Download entire playlist with youtube-dl

works for soundcloud as well

  • First get youtube-dl
    • Debian/Ubuntu sudo apt-get install youtube-dl
    • Arch/Manjaro/Antergos sudo pacman -S youtube-dl or yaourt youtube-dl and pick the packages you want
  • Then open a terminal
    • create a directory for the files mkdir playlist-name (change playlist-name to whatever name you want for the directory)
    • change current directory to it cd playlist-name
  • Finally enter the command
    youtube-dl -f bestaudio --add-metadata --embed-thumbnail -c -i -o '%(title)s.%(ext)s' --download-archive completed.txt URL
    • Don't forget to replace URL with the url of the playlist

Sample for dummies

mkdir Music/lofi-hiphop-study
cd Music/lofi-hiphop-study
youtube-dl -f bestaudio --add-metadata --embed-thumbnail -c -i -o '%(title)s.%(ext)s' --download-archive completed.txt https://soundcloud.com/chillhopdotcom/sets/lofihiphop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment