Forem

Cover image for Ripping Youtube vids on the cmd line
Ted Hagos
Ted Hagos

Posted on

6

Ripping Youtube vids on the cmd line

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>

Enter fullscreen mode Exit fullscreen mode

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>
Enter fullscreen mode Exit fullscreen mode

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

UPDATE:

added in the comments. Windows users can also get this via a Python package. You can get the EXE from rg3/youtube-dl

Top comments (5)

Collapse
 
zeerorg profile image
Rishabh Gupta

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

Collapse
 
tedhagos profile image
Ted Hagos

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?

Collapse
 
zeerorg profile image
Rishabh Gupta

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

Collapse
 
zeerorg profile image
Rishabh Gupta

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

Thread Thread
 
tedhagos profile image
Ted Hagos

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

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay