youtube-dl

Download videos from YouTube and other websites. Homepage: <http://rg3.github.io/youtube-dl/>.

Install

All systems
curl cmd.cat/youtube-dl.sh
Debian Debian
apt-get install youtube-dl
Ubuntu
apt-get install youtube-dl
Alpine
apk add youtube-dl
Arch Arch Linux
pacman -S youtube-dl
image/svg+xml Kali Linux
apt-get install youtube-dl
Fedora
dnf install youtube-dl
OS X
brew install youtube-dl
Raspbian
apt-get install youtube-dl

Download videos from YouTube and other websites. Homepage: <http://rg3.github.io/youtube-dl/>.

  • Download a video or playlist:
    youtube-dl https://www.youtube.com/watch?v=oHg5SJYRHA0
  • Download the audio from a video and convert it to an MP3:
    youtube-dl -x --audio-format mp3 url
  • Download video(s) as MP4 files with custom filenames:
    youtube-dl --format mp4 -o "%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s" url
  • Download a video and save its description, metadata, annotations, subtitles, and thumbnail:
    youtube-dl --write-description --write-info-json --write-annotations --write-sub --write-thumbnail url
  • From a playlist, download all "Let's Play" videos that aren't marked "NSFW" or age-restricted for 7 year-olds:
    youtube-dl --match-title "let's play" --age-limit 7 --reject-title "nsfw" playlist_url

© tl;dr; authors and contributors