Youtube-dl

This post describes how I use youtube-dl, and how you can, too.

It's pretty dang easy to install on GNU/*nix systems, like Ubuntu:

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

Windows users shouldn't have a much harder time, but I can't advise, never having done it. The instructions are pretty clear; Just download and run this & that.


Once installed, youtube-dl is used via the command line/terminal. Ubuntu users can use Ctrl+Alt+T to open up a terminal. Then, typing yo and hitting TAB will complete the youtube-dl command with proper spelling and whatnot. then you can paste in the URL of any youtube video, or many (most?) other streaming services. Try this:

youtube-dl https://www.youtube.com/watch?v=E-6xk4W6N20


More often, I use it to download mp3s from youtube, like so:

youtube-dl -x --audio-format mp3 -o ./Music/MyFavoriteSong https://www.youtube.com/watch?v=W9xLMT-kplQ

or perhaps

youtube-dl -o "./Music/%(uploader)s/%(title)s.%(ext)s" -x --audio-format mp3 https://www.youtube.com/user/Fagottron/videos

where %()s wraps around details from each video. This command will download 72 songs into the directory ./Music/Pogo/.

Share this: