Download videos from youtube.com 3

Update:

On Ubuntu a better approach to download youtube videos from command line is using clive. It has options to download the best available format for the video using the -f option.

Also a to download videos directly from the youtube.com homepage a firefox extension provides a “Save As” option just below the playing video. Here again, we have option to download from HD to the lowest available resolution of the video. Get the extension from here. http://userscripts.org/scripts/show/25105

Old method below, keeping it around for the memories.!!

Recently I found a fantastic python script do download videos from youtube.com. http://www.arrakis.es/~rggi3/youtube-dl/

You just need to pass the url of the video like this
$youtube-dl -t http://youtube.com/watch?v=LNY7Lau0sJw

Below is a script which can download the videos based on your search results on youtube.com.
Suppose you make a search as Shilpa Shetty Big Brother 😛 and you get a results page, now save this page as say results.html

Now put the below give script into a file called as youtube_download.sh and run it from the directory u saved results.html

#script to download vids from www.youtube.com
#! /bin/sh
if [ $# -lt 1 ]; then
echo "Usage: $0 filename.html |which has links from youtube.com search results"
echo "-Ajo Paul http://ajopaul.wordpress.com"
exit 1
fi
watchlink=""
for i in `cat $1 | grep "watch?" | cut -d '"' -f 2`
do
#watchlink="http://www.youtube.com"$i
if [ "$watchlink" != "$i" ]; then
echo "*********Now Downloading $i **********"
# youtube-dl -t $i 2>&1;
watchlink=$i
fi
done
echo "Done!"
echo "-Ajo Paul http://ajopaul.wordpress.com"

You can also put this script as a cronjob, but before that you must download youtube-dl and put in anywhere in your $PATH.

3 thoughts on “Download videos from youtube.com

  1. Reply youtube profits Aug 22,2012 4:35 pm

    hey there and thank you on your info ? I’ve definitely picked up anything new from proper here. I did then again expertise some technical issues using this site, since I experienced to reload the web site lots of instances prior to I may get it to load properly. I were considering in case your hosting is OK? Not that I’m complaining, but sluggish loading circumstances occasions will sometimes affect your placement in google and can injury your high quality ranking if advertising and marketing with Adwords. Anyway I am including this RSS to my email and can look out for much more of your respective intriguing content. Make sure you update this once more soon..

  2. Reply Ajo Paul Feb 20,2007 6:08 am

    But ofcourse you can download only one vid a time 🙂 . The idea above was to be able to download all videos from search pages(with links) on youtube.com. Say u search for Lab puppies, save the page and give it to the script using the above code, u wud get all the vids listed on the page! 🙂 🙂

  3. Reply Save YouTube Video Feb 19,2007 6:35 am

    I use http://www.savetube.com to save any youtube videos. They also got a latest saved section.

Leave a Reply

  

  

  

*