|
Post by metalx1000 on Oct 4, 2010 17:56:48 GMT -5
Here is a one liner that will download all the videos in my BASH playlist: lynx --dump "http://www.youtube.com/user/metalx1000#g/c/465C6C735CEB7CBD" |grep "watch?"|awk '{print $2}'|while read link;do youtube-dl "$link";done www.youtube.com/user/metalx1000#g/c/465C6C735CEB7CBD
|
|
|
Post by s3cur17y on Oct 4, 2010 18:31:52 GMT -5
I noticed that it only lists a few of your videos, and it leaves a blank space in the beginning, also it has double entries. I have been trying to fiddle with it but, I have yet to have any sucess...
|
|
|
Post by acpcalin on Oct 5, 2010 9:30:18 GMT -5
The script doesn't seem to work very well. It downloads many videos for me, some are bash tutorials, some a are PyGtk tutorials(which is not a problem as I needed those tutorials anyway on my computer), some are TWIL's videos etc. I doesn't seem to download only the playlist, but your favorites and other uploads too.
|
|
|
Post by metalx1000 on Oct 7, 2010 8:47:39 GMT -5
Guess it could have been done better. Could use 'sort -u' to sort out the uniq videos and avoid doubles.
Try this:
lynx --dump "http://www.youtube.com/view_play_list?p=465C6C735CEB7CBD" |grep "watch?"|awk '{print $2}'|sort -u|while read link;do youtube-dl "$link";done
|
|
|
Post by s3cur17y on Oct 9, 2010 12:43:04 GMT -5
I made 2 small additions.. 1. I added cut to remove anything after '&' 2. I also added '-o "%(title)s.flv"', to give each video the actual name.
lynx --dump "http://www.youtube.com/view_play_list?p=465C6C735CEB7CBD" | grep "watch?" | awk '{print $2}' | cut -d\& -f1 | sort -u | while read link;do youtube-dl -o "%(title)s.flv" "$link";done
|
|
|
Post by metalx1000 on Oct 10, 2010 15:10:12 GMT -5
2. I also added '-o "%(title)s.flv"', to give each video the actual name. Nice.
|
|
klein
New Member
Posts: 1
|
Post by klein on Aug 13, 2011 23:08:05 GMT -5
i tried this on ubuntu 10.04 installed youtube-dl , lynx and lynx-cur and it is giving me an error: format not available for video ?
|
|