If you are familiar to Linux, see the following script…
I have a text file with a (list.txt) of Youtube URLs separated by new line… and I use
cat list.txt | youtube-dl -f best
to download all in the list
This works fine but I want to emulate it on a Windows Batch file..
set /p data=<list.txt
youtube-dl -f best %data%
This works too.. BUT it downloads only the first video on the list.
A Simple solution w.r.t coding would be preferred.
PS:Also it is certain that I'm not looking for solutions using youtube-dl commands
Best Answer
Rather than piping it in, you could use functionality provided by
youtube-dl
- it has a parameter that allows you to point at a text file containing a list of URLs - one per line.In your situation you'd use: