- You might have to download python for linux and mac, for windows it's not necessary
- Download youtube-dl from https://rg3.github.io/youtube-dl/download.html
- Install on PATH so you can run from anywhere as a command
- Open command prompt and navigate (cd foldername) to a video folder where you want to download videos
> youtube-dl -cit < url>
Example :
> youtube-dl -cit https://www.youtube.com/playlist?list=PL6gx4Cwl9DGAcbMi1sH6oAMk4JHw91mC_
Try youtube-dl --help command for more options. You can audio extract, change download resolution and more... Keep youtube-dl updated with this command (it's important)
> youtube-dl -U
- Download youtube-dl-batch.bat file and copy to a folder which you will add to system PATH
- Add #1 folder to the system PATH
- Create a file with below format(each url on new line) in the folder where you want to download all the videos, let's call this file list.txt
https://www.youtube.com/watch?v=nG7OhBnfefE
https://www.youtube.com/watch?v=9FPkN6ETqes
- Run the command from command prompt
> youtube-dl-batch text.txt
- Run this script
> curl -sL https://raw.githubusercontent.com/sushilshinde/scripts/master/install-youtube-dl | sudo -E bash -
This script will install youtube-dl and youtube-dl-batch, also will make them executable available on path
- Create a file with below format(each url on new line) in the folder where you want to download all the videos, let's call this file list
https://www.youtube.com/watch?v=nG7OhBnfefE
https://www.youtube.com/watch?v=9FPkN6ETqes
- Run command from any folder and provide file path as first parameter
> youtube-dl-batch list