Skip to content

Ripping Youtube vids on the cmd line

twitter logo github logo ・1 min read  

Going through my old linux and macOS cheatsheets, I found this, youtube-dl; it lets you rip youtube vids and download them.

sudo apt-get update && sudo apt-get install youtube-dl
youtube-dl <youtube vid URL>

It's also available on macOS. If you use brew, you can get it with this

brew update
brew install youtube-dl

youtube-dl <youtube vid URL>

I think you can also do this in Windows with Cygwin, but I haven't tried that.


zeerorg image
added in the comments. Windows users can also get this via a Python package. You can get the EXE from rg3/youtube-dl
twitter logo DISCUSS (5)
markdown guide

It's a python library so you have to pip install it in windows :-)


Do you still need Cygwin for it? or is it available now from the NuGet repos (chocolatey). Is it why you need to install the Python dependencies?


Also the youtube-dl devs provide windows executable i.e. an exe and you can run it from powershell or cmd

Cool. I didn't know that. I haven't used Windows in a while. I'll update the article. Thanks


You don't need cygwin but you'll need to install python. After that the package manager does its job of collecting all other dependencies

Classic DEV Post from Jun 20 '19

Do you use time-tracking for work or for your personal time?

Ted Hagos profile image
coder, scribbler, doodler (in that order). Keeps his notes at and wrote a couple of books for Apress

Be a better developer. Free forever.