Skip to content

Instantly share code, notes, and snippets.

@Bhavdip
Last active May 19, 2017 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bhavdip/bfedbcca80ae87ef4937bea1c54270b5 to your computer and use it in GitHub Desktop.
Save Bhavdip/bfedbcca80ae87ef4937bea1c54270b5 to your computer and use it in GitHub Desktop.
[YouTube Downloader For Ubuntu 10.04] #tags:Ubuntu
//YouTubeDownloader
//https://www.tecmint.com/install-youtube-dl-command-line-video-download-tool/
$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install youtube-dl
$ sudo curl https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
OR
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
//Upgrade
youtube-dl -U
//How to Use YouTube-DL to Download Videos
# youtube-dl https://www.youtube.com/watch?v=iRYvuS9OxdA
//To list all available formats of video, use option “–list-formats” with the youtube-dl command.
youtube-dl --list-formats https://www.youtube.com/watch?v=iRYvuS9OxdA
//To download a preferred file format, use the option ‘-f’ (video format code). For example, I would like to //download mp4 format, So I use format code as ‘18‘ as shown below.
youtube-dl -f 18 https://www.youtube.com/watch?v=iRYvuS9OxdA
//To download a list of video files, create a file and place all the YouTube links that you wish to download.
youtube-dl -a youtube_links.txt
//Type the following command in a terminal to list all the avialable options
youtube-dl --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment