archive youtube videos


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

sudo curl -L -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 -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl


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