Technorati Tags: email, sendEmail, Perl
There is a very nice little utility or rather SMTP client program called sendmail (Link — http://caspian.dotconf.net/menu/Software/SendEmail/).
This can be used in Windows or Linux or any other OS with perl installed and few other perl modules installed. Its quite easy to use and comes in quite handy to send emails.
In later posts we will see how we can use this in various ways : sending mail from your browser, from your editor or even from the command line or shell script.
How many time did you want to see all the videos (related) to the one you were watching on youtube but decided otherwise as the downloaded was not fast enough. Or has it happened to you that you wanted to download all the related videos, in either case you can use the youtube-dl utility I blogged about some times back. First you need to get all the URL\’s in a text file, and the simplest way to do this is :
copy the html and paste it in a text file and save it.
Note: Ctrl+u in most browsers is for viewing the source. If you do not want to do this then you can simply do a save as and save the html file 🙂
Now time to get all the URL\’s from the html:
for i in $(grep video-list-item <filename> |sed \’s/&.*//\’|sed \’s/.*=\”\\(.*\\)/\\1/\’)
echo \”Writing $i to youtube.urls file\”
echo \”http://www.youtube.com$i\” >> ~/youtube.urls
Just change the filename in the above with the file that you just saved and you will get all the URL\’s in the file \”~/youtube.urls\”. Once this is done you can simply do
youtube-dl -a ~/youtube.urls