Youtube-dl

archive youtube videos

Installation

To install it right away for all UNIX users (Linux, macOS, etc.), type:

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

If you do not have curl, you can alternatively use a recent wget:

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

Usage

Download a single video
youtube-dl <link to video>

Download an entire channel
youtube-dl <channel url>

Number each video starting at 001 and write-thumbnails
youtube-dl -o “%(playlist_index)s-%(title)s.%(ext)s” –write-thumbnail <channel url>

Update youtube-dl
sudo youtube-dl -U