We all know many ways to download youtube video. Many free "youtube downloaders" are available in the Internet and others are simple browser plugins.
But they all have this drawback that once the download is interrupted they are not able to restart it again.
But in the world of Linux we have a tool take is awesome to download Youtube Videos as well as COMPLETE PLAYLISTS. Normal youtube downloaders don't allow you to download a complete playlist, do they?
The tool is called "youtube-dl". This is a completely "free and open source" software. You can get the source code from this link. "youtube-dl" does not only allows you to donwload videos from youtube but also from and other sites like dailymotion, etc. "youtube-dl" does not only works for Linux operating system but also for Windows operating system and mac operating system.
"youtube-dl" requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. As I have told you earlier in this post since "youtube-dl" is released to the public domain, which means you can modify it, redistribute it or use it however you like.
To install it right away for all UNIX users (Linux, OS X, etc.), type:
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
If you do not have curl, you can alternatively use a recent wget:
sudo wget 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 can download an .exe file and place it in any location on their PATH except for %SYSTEMROOT%\System32 (e.g. do not put in C:\Windows\System32).
You can also use pip:
sudo -H pip install --upgrade youtube-dl
This command will update youtube-dl if you have already installed it. See the pypi page for more information.
OS X users can install youtube-dl with Homebrew:
brew install youtube-dl
Or with MacPorts:
sudo port install youtube-dl
Usage
youtube-dl [OPTIONS] URL [URL...]
Usage of "youtube-dl" is quite simple. You just have to type "youtube-dl URL". That's it and your download starts the moment you press enter.
You can download either a single video or if the link you pasted is of any playlist and it downloads the playlist for you and save it in the folder/directory you are currently in the terminal.
If you want to download only some specific videos from the playlist you can do that too in the following way:
youtube-dl <URL> --playlist-start <NUMBER> --playlist-end <NUMBER>
No comments:
Post a Comment