Youtube Download

From Torben's Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

youtube-dl

Install

see https://yt-dl.org

# Linux: Debian / Ubuntu
sudo apt-get install youtube-dl
# via pip
sudo pip install --upgrade youtube_dl
# get latest version as python binary
wget https://yt-dl.org/latest/youtube-dl
# via homebrew
brew install youtube-dl

Usage

see {https://itsfoss.com/download-youtube-linux/}

URL=https://www.youtube.com/watch?v=rs2RlZQVXBU

# Download only audio from YouTube videos
youtube-dl --extract-audio --audio-format mp3 $URL

# display available formats
youtube-dl -F $URL
# choose to download of version, where no. 37
youtube-dl -f 37 $URL

# list available subs 
youtube-dl --list-subs $URL
# subs only
youtube-dl --all-subs --skip-download $URL 

# Download entire YouTube playlist
youtube-dl -cit <playlist_url>