Download youtube videos

Here is a nice tool to download youtube videos. It’s called youtube-dl. You can install it as follows.

sudo curl -o /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl

Or if you have apt-get, simply do sudo apt-get install youtube-dl.

Here is the documentation on how to use it. Below is a simple command to get you started. =)

# using the video title as filename
youtube-dl -o "%(title)s.%(ext)s" "" --restrict-filenames

The –restrict-filenames flag will take away the special characters in output filename.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s