First of all thanks to RyanBates for his valuable contribution towards the rails community with those short and easy-to-understand railscast videos. From Past few months I continuously watching those videos. Yesterday while downloading one of those videos, I realize rather than downloading them when its needed, it better to write some very short & sweet script which will do that for me which giving me any trouble. After looking for some already existing rubyscripts on internet, I ended up writing my own.
require ‘rubygems’require ‘hpricot’require ‘open-uri’class GetRailsCastsdef initialize@host = “http://railscasts.com/episodes/”enddef start1.upto(229){ |eps|eps_doc = Hpricot(open(“#{@host}#{eps}”)) rescue nilif eps_doc# cd to the folder where u want to store the rails-cast videos`cd /Users/sandy/railscasts; wget #{(eps_doc/”.download/a”).first[:href]}`end}endend
Comment are most welcome
Good man!
For starting the Blog post venture. Keep the posts coming
really this is nice blog
When someone writes an paragraph he/she maintains the image of a user in his/her mind that how a user can know
it. Therefore that’s why this article is outstdanding. Thanks!
Having read this I thought it was extremely informative.
I appreciate you spending some time and energy
to put this short article together. I once again find myself personally
spending a lot of time both reading and commenting. But so
what, it was still worth it!
Hey there I am so thrilled I found your site, I really
found you by mistake, while I was researching
on Askjeeve for something else, Anyhow I am here now and would
just like to say kudos for a marvelous post and a all round thrilling blog (I also love the theme/design),
I don’t have time to read it all at the
moment but I have book-marked it and also included your RSS feeds, so when I have time I will be
back to read more, Please do keep up the awesome b.
Excellent pieces. Keep writing such kind of information on your site.
Im really impressed by it.
Hello there, You have performed a great job. I’ll certainly digg it and individually suggest to my friends. I’m sure they’ll be benefited from this website.
Hello my family member! I want to say that this post is awesome, nice written and include approximately all
significant infos. I would like to peer more posts like this .
When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three e-mails with the same comment.
Is there any way you can remove me from that service? Cheers!
Hey! I’m at work browsing your blog from my new iphone 3gs! Just wanted to say I love reading your blog and look forward to all your posts! Carry on the excellent work!
Normally I don’t learn post on blogs, but I would like to say that this write-up very forced me to check out and do it! Your writing taste has been surprised me. Thank you, quite great article.
Wow, awesome blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your website is great, let alone the content!