Sunday, 28 May 2017

Download YouTube Videos Using Terminal

Hi friends,

There is a cool library named youtube-dl in Python that allows users to download their favorite YouTube videos using the video URL. In this post, I'll show you how to install and use the youtube-dl library in your system.

For Windows users:

You need to download the exe file from here and place it in any location on your PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32)

For Linux Users:

You need to have pip in order to use the youtube-dl library. You can install the same by typing the following in your terminal:

pip install youtube-dl

Once you have installed the setup. You can then start downloading your favorite YouTube video using the following command from the command prompt/terminal:

youtube-dl "<your_youtube_url>"

You can check out additional parameters that can be given with the command here.
Share:

0 comments:

Post a Comment