Automatically pulled from My Clippings on NewsGator Online

$ y=http://www.youtube.com;for i in $( -s $f|grep -o "url='$y/watch?v=[^']*'");do d=$(echo $i|sed "s;url\='$y/watch?v=\(.*\)';\1;");wget -o $d.flv "$y/get_.?video_id=$d&t=$(curl -s "$y/watch?v=$d"|sed -n 's/.*, "t": "\([^"]*\)", .*/\1/p')";done

This will download a Youtube playlist and mostly anything http://code.google.com/apis/youtube/2.0/reference.html#Video_Feeds

The files will be saved by $id.flv

commandlinefu.com

by David Winterbottom (codeinthehole.com)



Go to Source

Tags: , , ,



Leave a Comment

Anti-Spam Protection by WP-SpamFree