Ruby on Rails

Depends how you interpret things

RailsCast’s Crawler – RubyScript


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 GetRailsCasts
def initialize
end
def start
1.upto(229){ |eps|
eps_doc = Hpricot(open(“#{@host}#{eps}”)) rescue nil
if 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
}
end
end
Comment are most welcome
About these ads

47 responses to “RailsCast’s Crawler – RubyScript

  1. Akshay 2010/09/09 at 6:32 am

    Good man!

    For starting the Blog post venture. Keep the posts coming :)

  2. Norat Saraswat 2010/09/09 at 3:41 pm

    really this is nice blog

  3. personal loans 2012/12/07 at 11:29 am

    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!

  4. Shannon 2012/12/09 at 11:40 pm

    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!

  5. coldcallingtips102.multiply.com 2012/12/18 at 6:10 am

    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.

  6. hemorrhoid no more review 2013/01/16 at 4:20 am

    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.

  7. Ophelia 2013/02/22 at 6:59 am

    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 .

  8. 1000games 2013/03/30 at 1:48 pm

    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!

  9. playing cricket games 2013/04/05 at 9:36 pm

    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!

  10. Alexis 2013/04/09 at 3:04 am

    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.

  11. minerva 2013/04/14 at 3:50 am

    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!

  12. Ahmad 2013/06/02 at 7:09 pm

    These types of coffee makers, however, produce weak and additionally below-extracted coffee when brewing
    modest quantities due to the fact they can not extend to
    an extreme enough environment to completely pull almost all flavors in the opportunity it takes to make any or two cups.
    you could get an estimated this particular the couple of tips firstly you will find the possibility to dilute the
    espresso along with water otherwise next provided anything like me you see espresso simply a little besides powerful you can easily prepare it the Spanish way.

  13. http://conselho.org/groups/precisely-why-your-shouldnt-get-the-tattoo-even-though-pregnant 2013/06/16 at 3:01 pm

    I am really loving the theme/design of your blog.
    Do you ever run into any browser compatibility problems?
    A handful of my blog audience have complained about my site not working correctly in Explorer but looks great in Safari.
    Do you have any suggestions to help fix this issue?

  14. Ray ban cats pas cher 2013/06/16 at 7:49 pm

    producer de lunettes de soleil reconnues fondé comme de 1937 par Bausch et Lomb, l’Interdiction de Ray a géré à écrit le premièrement solaire rencontré vraiment un incroyable achievements. le les lunettes de soleil d’Interdiction de Ray bon marché are sans question un particulier
    préféré et le monde solaire célèbre, et aussi ce particulier énorme les succès je bien A mérité because.
    l’air Pouvoir a commandé dans le tôt les années 90, notamment en1933, la soleil what a équipé les pilotes de combattant.

  15. usb kamera wasserdicht 2013/08/11 at 1:55 am

    Oh my goodness! Awesome article dude! Many thanks, However I am
    going through difficulties with your RSS. I don’t understand the reason why I can’t join it.
    Is there anybody else having similar RSS problems? Anyone that knows the
    solution can you kindly respond? Thanx!!

  16. aqua spere 2013/08/16 at 7:29 pm

    Fascinating blog! Is your theme custom made
    or did you download it from somewhere? A design like
    yours with a few simple adjustements would really make my blog shine.
    Please let me know where you got your theme.
    With thanks

  17. multitude 2014/03/29 at 9:23 am

    Link exchange is nothing else however it is
    only placing the other person’s webpage link on your
    page at appropriate place and other person will also do same in favor of
    you.

  18. nounally 2014/03/29 at 11:36 pm

    Hello there, You’ve done a fantastic job. I will
    definitely digg it and personally suggest to my friends. I’m sure they’ll be benefited from this
    website.

  19. http://www.gptwo.com/story.php?id=101924 2014/05/15 at 7:12 am

    You don’t need to jailbreak your Iphone to use this application.

    That’s why iPhones are so liked from everybody
    including main college college students and aged also.
    Want a customized wallpaper on your house screen?

  20. Silas 2014/05/15 at 7:46 am

    No question the development of mobile internet is sky rocketing
    like by no means prior to. Those who have a habit of switching on the
    tv established as quickly as you wake up, this is for you.

  21. wiki.extensionbuffet.com 2014/05/15 at 10:45 pm

    The fast photo library was just launched by you! They had sanguine, lifeless whites under a dim vision.

  22. newsfail 2014/05/16 at 6:45 pm

    I am genuinely grateful to the owner of this web page who has shared this great paragraph at at this place.

  23. cydia ios 7 app killer 2014/05/21 at 9:27 pm

    To trigger disk clean-up, right-click your hard drive, choose Properties
    and press the Disk Cleanup button.

  24. iReb 2014/05/28 at 10:28 pm

    The GPS may also have heritage where in fact the
    telephone has been in the past so you can often see.

    But when you click AssistiveTouchIs 4 and you just need onefinger to complete the procedure.

  25. blogs.lawrence.edu 2014/05/29 at 12:05 am

    They improve the firmware and also stop the blocks that are provided by
    SONY. Step twelve: Most likely the boot screen will halt throughout
    the Skull logo. But allow me inform you,
    jailbreaking is a big deal.

  26. cydia apps 2014/06/12 at 1:27 am

    Tap onto it and pick the options you want to install in your device.
    Just because of its slimness it is more convenient to carry this device everywhere and it sits smugly in the
    pockets.

  27. Arleen 2014/06/12 at 9:49 pm

    This contains futuristic feel and an old model about it and is not your
    usual kind of game. The complete Greyhound trip was a fiasco,
    charging over 0 to get an one of the ways visit to Chicago.

  28. cydia sources 2014/06/17 at 1:35 am

    The iphone is a great example of this. This iPhone request transcribes your voice memos into text.
    Follow the straightforward steps mentioned below and get your iPhone updated within couple of minutes.

  29. www.google.ca 2014/07/21 at 6:22 pm

    Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my
    blog that automatically tweet my newest twitter updates.

    I’ve been looking for a plug-in like this for quite some time and was hoping maybe you
    would have some experience with something like this.
    Please let me know if you run into anything.
    I truly enjoy reading your blog and I look
    forward to your new updates.

  30. 91.238.135.30 2014/08/12 at 7:19 am

    Customize the wallpaper, standing bar and dock on your iPhone 3G.
    (2) It also insures that she uses her time efficiently.

    AppBackup is a marvelous utility that allows you fully backup the memory of your IPod Touch.

  31. leesthb.jigsy.com 2014/08/16 at 4:43 am

    Hello! I’ve been reading your website for a while now and finally
    got the courage to go ahead and give you a
    shout out from Atascocita Tx! Just wanted to tell you keep
    up the excellent work!

  32. Layne 2014/08/16 at 12:45 pm

    With this technique, you should not operate a higher
    danger of your telephone becoming infected with malwares.
    1) Mail application crashes following restoring backup from
    iTunes. In the meantime, it also provides wealthy edit choices.

  33. mar3.smartwebsolution.org 2014/08/17 at 8:33 am

    The spokesperson/leader, MuscleNerd, has also verified that
    this will function for the Apple Tv two also. For much more particulars
    on the applications, you can go to iTunes and see which ones you like.

  34. http://jaiadas.blogspot.com/2014/02/jestem.html 2014/08/23 at 12:14 am

    Apple is fairly parochial about what can and CAn’t be downloaded while in the Apple Appstore while you realize.

    And you will be exposed to a broad skyline of designs! Consult
    the author what data they need from you.

  35. Renate 2014/08/27 at 4:02 am

    Ați probabil deja a vorbit despre posibilitatea ca la acest moment
    . Amintiți-vă acele zile de rendez-vous spate de locuri sau de a crea în cinema ?
    Voi paria prietena ta ar prefera -ai făcut !

  36. Shaun 2014/08/27 at 6:59 am

    This website has been created as an on-line repository of free and paid applications.
    Studying HTML and CSS is just an additional for you to understand what is powering the
    blog. Uninstall whatsapp from your Android phone.

  37. Angelia 2014/08/29 at 11:31 pm

    I didn’t experience wonderful the steps about all. Put simply, you’d raise your left leg
    up to the action, maintain it there. This may redirect you to site or a new webpage.

  38. Micki 2014/08/31 at 12:52 pm

    PHONELOCATOR Professional (Paid: $2.eighty)Maintain your
    Android gadget safe. It provides a wide
    range of choices to play about with the pictures on your telephone.
    But, are we need all these programs we got installed?

  39. Violet 2014/09/01 at 2:01 pm

    So, you should be in a position to realize now, they get no reason to con you.
    Do you feel just like the elements pattern has been in a rut?

    Another successful method for iPhonw unleashing is Redsn0w.

  40. install whatsapp on pc windows xp 2014/09/03 at 8:04 pm

    So, let us begin with delivering kisses for your friends in Facebook.
    The truth that any player within the game can attack another player
    is really a essential dynamic of the game.

  41. turnerrofg.bravesites.com 2014/09/05 at 2:26 pm

    whoah this blog is fantastic i like studying your articles.
    Stay up the great work! You understand, many people are hunting round for this information, you can help them greatly.

  42. http://moraleswoiu.jigsy.com 2014/09/05 at 5:16 pm

    Why users still make use of to read news papers when in this technological globe everything is
    accessible on web?

  43. how to lay shingles on roof 2014/09/09 at 12:43 pm

    Thank you for the auspicious writeup. It in reality used to be a
    leisure account it. Glance advanced to far added agreeable
    from you! By the way, how can we keep up a correspondence?

  44. promovare online 2014/09/11 at 6:08 pm

    Questionmark este mare pentru a găsi spllellings substitut pentru fraze .

  45. http://cli.gs/ifaith13888 2014/09/11 at 10:20 pm

    Use your writer: make sure to interview your writer.
    Surfers have their particular vocabulary so it is not soft to continue and it is permanently
    changing,. Ramon certainly fell into the latter category!

  46. http://the-antique-shop.blogspot.com 2014/09/16 at 1:46 am

    You can do this by searching for the WhatsApp Messenger
    web page in Google Play and clicking the Uninstall button. Most of us use
    cloud storage each solitary day with out even understanding it.

  47. http://gpcamyp.blogspot.com/2010/08/blog-post-4-rated-g-for-girls.html 2014/09/19 at 5:13 am

    Your very fundamental software program called BIOS.

    Some issues brought on by broken, old or lacking driver.
    Thanks for halting by and if you know of any other applications we ought to verify out please share.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: