Railscasts downloader script

run it to download all railscasts, re-run it to update with newly released ones. Just run it in the folder where you want to keep them. yes, I could have used the word run a couple more times.
#!/usr/bin/ruby
require 'rss'

p 'Downloading rss index'

rss_string = open('http://feeds.feedburner.com/railscasts').read
rss = RSS::Parser.parse(rss_string, false)
videos_urls = rss.items.map { |it| it.enclosure.url }.reverse

videos_filenames = videos_urls.map {|url| url.split('/').last }
existing_filenames = Dir.glob('*.mov')
missing_filenames = videos_filenames - existing_filenames
p "Downloading #{missing_filenames.size} missing videos"

missing_videos_urls = videos_urls.select { |video_url| missing_filenames.any? { |filename| video_url.match filename } }

missing_videos_urls.each do |video_url|
  filename = video_url.split('/').last
  p filename
  p %x(wget #{video_url} -O #{filename}.tmp )
  p %x(mv #{filename}.tmp #{filename} )
end
p 'Finished synchronization'
it's on github

Publicado por Maximiliano Guzman Tue, 26 May 2009 16:23:00 GMT


Trackbacks

Usa el siguiente link para crear un trackback desde tu propio sitio:
http://maximilianoguzman.com.ar/trackbacks?article_id=5

Comentarios

Deja un comentario

  1. Avatar
    Aldo Escudero about 11 hours después:

    Thanks, for the info. I have been looking this for quite long.

  2. Avatar
    Alan Andrade 6 days después:

    Thank you very Much!!! I was trying to doing the job with wget, but I guess is enough. Cheers!!

  3. Avatar
    Bruno Antunes about 1 month después:

    Thanks for the script!

  4. Avatar
    Pedro Coelho 2 months después:

    Awesome! Very useful script!

  5. Avatar
    Michal Papis 7 months después:

    I know that writing ruby scripts is important for gathering knowledge, but I have shorter solution http://niczsoft.com/2010/01/download-all-railscasts/ using wget :)

  6. Avatar
    Scorpio about 1 year después:

    I figured out a much quicker way to do this.

    if you’re using Firefox install the Flashgot addon

    Go to http://feeds.feedburner.com/railscasts Right click and select Flashgot all than pick the files / filetypes you want (there should be a checkbox for it say .mov (200) 300) or how many episodes there were and just click Ok and proceed like with any other download.

    Hope it helps

    PS should work with any equivalent software

  7. Avatar
    Van Mardian about 1 year después:

    Unfortunately, the script no longer works.

  8. Avatar
    Kulbir Saini about 1 year después:

    Couldn’t resist https://github.com/kulbirsaini/Railscasts-Sync :-)

    PS : That “it’s on github” link is too small.. I saw that after creating my own repo :|

  9. Avatar
    krzyzowki about 1 year después:

    This is the greatest topic I have read today

  10. Avatar
    pozycjonowanie about 1 year después:

    Great read! You might want to follow up to this topic???

  11. Avatar
    programy about 1 year después:

    Thanks for this great post. Did you do it all on your own? This must’ve taken a lot of time

  12. Avatar
    Michael DuBasso over 2 years después:

    It’s very straightforward to find out any topic on web as compared to textbooks, as I found this paragraph at this website.

  13. Hola amigos, que alegría de estar aqui en su sitio web. Les participo mi deseo en su tema, hablemos de rastreo satelital para vehiculos ahora

  14. Avatar
    Resultados Futbol over 3 years después:

    I think this is one of the most significant information for me. And i am glad reading your article. But wanna remark on few general things, The website style is wonderful, the articles is really great : D. Good job, cheers

  15. Avatar
    Household Cleaning Services over 3 years después:

    Hmm is anyone else encountering problems with the images on this blog loading?

    I’m trying to figure out if its a problem on my end or if it’s the blog. Any feedback would be greatly appreciated.

  16. Avatar
    Cristina over 3 years después:

    Magnificent beat ! I wish to apprentice even as you amend your website, how could i subscribe for a blog site? The account aided me a appropriate deal. I have been a little bit familiar of this your broadcast provided shiny clear idea

  17. Avatar
    Cristina over 3 years después:

    Magnificent beat ! I wish to apprentice even as you amend your website, how could i subscribe for a blog site? The account aided me a appropriate deal. I have been a little bit familiar of this your broadcast provided shiny clear idea

  18. Avatar
    activity calorie calculator over 3 years después:

    Hello it’s me, I am also visiting this website daily, this web page is really pleasant and the people are genuinely sharing good thoughts.

  19. Avatar
    Www.parafia.radom.pl over 3 years después:

    What’s up everyone, it’s my first visit at this web page, and post is genuinely fruitful in favor of me, keep up posting these articles. Www.parafia.radom.

    pl

  20. Avatar
    Natalie over 3 years después:

    Hi there, just wanted to say, I liked this article. It was funny. Keep on posting!

  21. Avatar
    Candy Crush Astuces over 3 years después:

    Spot on with this write-up, I honestly think this amazing site needs far more attention. I’ll probably be returning to see more, thanks for the info!

  22. Avatar
    Candy Crush Saga Trucchi over 3 years después:

    I don’t know whether it’s just me or if perhaps everybody else experiencing problems with your site. It appears as if some of the written text on your content are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them too? This might be a problem with my web browser because I’ve had this happen previously. Appreciate it

  23. Avatar
    justpaste.it over 3 years después:

    It’s an remarkable post for all the online people; they will take benefit from it I am sure.

  24. Avatar
    przepisy dieta dukana over 3 years después:

    Over the course of the entire Dukan diet process, low impact physical exercises, such walking, are recommended to achieve weight-loss. They stay in the market for a month or two, earn money and disappear. After all, you are not just choosing a diet, but a lifestyle you can stay committed to.

  25. Avatar
    https://www.facebook.com/ over 3 years después:

    You can also play Sonic, and Tails or Sonic and Tails or Knuckles. To that, it adds a more taut suspension, a 10-millimeter-lower ride height, four-wheel disc brakes and 17-inch wheels. (This particular restaurant has great service and meticulously packs to-go orders with the same sides and sauces served to dining room patrons.

  26. Avatar
    https://www.facebook.com/ over 3 years después:

    You can also play Sonic, and Tails or Sonic and Tails or Knuckles. To that, it adds a more taut suspension, a 10-millimeter-lower ride height, four-wheel disc brakes and 17-inch wheels. (This particular restaurant has great service and meticulously packs to-go orders with the same sides and sauces served to dining room patrons.

  27. Avatar
    www.dailymotion.com over 3 years después:

    When it needs maintenance it gets maintenance at the right point. Apartments, condos, businesses and offices would do well with this system. If you need help finding a wireless internet access vendor.

  28. Avatar
    fibonacci forex trading system over 4 years después:

    Wonderful Railscasts downloader script guide! I’m naturally captured by your skills in creating. The idea reminded me of a content article regarding Bitterly Someone said a few hours earlier. However, sweet piece… appreciate your writing.

  29. Avatar
    IT Support Baldock over 4 years después:

    Hello there, I do believe your site may be having internet browser compatibility issues.

    When I take a look at your web site in Safari, it looks fine but when opening in Internet Explorer, it’s got some overlapping issues. I merely wanted to give you a quick heads up! Aside from that, wonderful site!

  30. Avatar
    viagra over 4 years después:

    Thank you for every other informative blog. The place else could I get that kind of info written in such a perfect way? I have a undertaking that I’m simply now operating on, and I have been on the glance out for such information.

  31. Avatar
    Discover More over 4 years después:

    Thanks a ton! It a impressive website.

  32. Avatar
    Discover More over 4 years después:

    Thanks a ton! It a impressive website.

  33. Avatar
    pure white kidney x over 4 years después:

    I all the time used to read paragraph in news papers but now as I am a user of net therefore from now I am using net for articles, thanks to web.

  34. Avatar
    Heel Pinboard over 4 years después:

    Howdy just wanted to give you a quick heads up. The text in your content seem to be running off the screen in Opera. I’m not sure if this is a formatting issue or something to do with web browser compatibility but I figured I’d post to let you know. The design and style look great though! Hope you get the problem solved soon. Kudos

  35. Hi! Do you know if they make any plugins to safeguard against hackers?

    I’m kinda paranoid about losing everything I’ve worked hard on. Any tips?

  36. Hi! Do you know if they make any plugins to safeguard against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any tips?

  37. Avatar
    Refugio over 4 years después:

    Excellent beat ! I wish to apprentice while you amend your website, how could i subscribe for a weblog website? The account helped me a acceptable deal.

    I had been tiny bit familiar of this your broadcast provided vibrant clear idea

  38. Avatar
    decrease weight now over 4 years después:

    Hi, Neat post. There’s an issue together with your web site in internet explorer, would test this? IE still is the market chief and a large component of other folks will leave out your wonderful writing due to this problem.

  39. Avatar
    Zebra Print Rugs over 4 years después:

    Very great post. I simply stumbled upon your blog and wanted to mention that I have truly enjoyed surfing around your blog posts. In any case I will be subscribing for your rss feed and I’m hoping you write again very soon!

  40. Avatar
    leaky gut syndrome symptoms over 4 years después:

    Having read this I believed it was really enlightening. I appreciate you taking the time and energy to put this 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!

  41. Avatar
    Glenn over 4 years después:

    Drug free, natural cold remedy and treatment for babies #2 - Saline Solution Remedy and treatment Gently squirt saline nose drops into your child’s nose. For one, they smell good, with two scents which can be great for bedtime and second, these are an all around good product.

  42. Avatar
    sex amateur francaise over 4 years después:

    Unquestionably believe that which you said. Your favorite justification seemed to be on the web the easiest thing to be aware of. I say to you, I definitely get irked while people consider worries that they plainly do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people can take a signal.

    Will likely be back to get more. Thanks

  43. Avatar
    best home security monitoring service over 4 years después:

    It is the best time to make some plans for the long run and it’s time to be happy. I’ve read this put up and if I may I wish to recommend you few fascinating things or advice. Maybe you can write subsequent articles regarding this article. I want to read even more things approximately it!

  44. Avatar
    forum.terrum.co.uk over 4 years después:

    Can I simply say what a relief to discover a person that truly knows what they’re talking about online. You actually know how to bring an issue to light and make it important. More and more people need to read this and understand this side of your story. I was surprised that you’re not more popular because you surely possess the gift.

  45. Avatar
    webpage over 4 years después:

    Highly descriptive article, I loved that bit. Will there be a part 2?

  46. Avatar
    Read Me over 4 years después:

    Howdy would you mind letting me know which hosting company you’re using? I’ve loaded your blog in 3 completely different browsers and I must say this blog loads a lot faster then most. Can you recommend a good web hosting provider at a fair price? Thanks a lot, I appreciate it!

  47. I love what you guys tend to be up too. This sort of clever work and coverage! Keep up the awesome works guys I’ve added you guys to my own blogroll.

  48. Avatar
    chart over 4 years después:
    Thanks for finally writing about >Railscasts downloader script <Loved it!
  49. Avatar
    conseil trategie marketing over 4 years después:

    Flyers are not that complicated to produce, unlike when you are using pop up ads, you will learn about the marketing analytics ploy, according to its filings to the Internal Revenue Service and a hospital lawyer.

    It appears, then, that these venues are treated as brand assets, where the details and brand experiences are accurate, comprehensive, and consistent. Its empowering, aspirational tone is stronger than the other brands, promising to help you purchase tickets for opening weekend. Market segments can also be used when it comes to resource efficiency.

  50. Avatar
    mc daleste o gigante acordou over 4 years después:

    legal esse post, muito bom, quero baixar muitos cds. legal

  51. Avatar
    Raspberry trim and clean Trim over 4 years después:

    Post writing is also a excitement, if you be familiar with after that you can write if not it is complicated to write.

  52. Avatar
    trig x2 supplement over 4 years después:

    Hello, after reading this amazing paragraph i am also delighted to share my experience here with colleagues.

  53. Avatar
    minecraft server List over 4 years después:

    It is iin reality a nice and useful piece of information.

    I am satisfied that you just shared this useful info with us. Please stay us informed like this. Thaanks for sharing.

  54. Avatar
    minecraft server List over 4 years después:

    It iis in reality a nice and usefull piece off information. I am satisfied that you just shared this useful info with us. Please stay us informed lije this. Thanks for sharing.

  55. Avatar
    dietas faciles para adelgazar over 4 years después:

    I’ve been browsing on-line greater than three hours as of late, yet I by no means discovered any attention-grabbing article like yours. It’s lovely value sufficient for me. In my opinion, if all site owners and bloggers made excellent content material as you did, the web might be much more helpful than ever before.

  56. Avatar
    free accounts minecraft over 4 years después:

    After going over a few of the articles on your site, I honestly like your technique of blogging.

    I book-marked it to my bookmark site list and will be checking back soon. Take a look at my website as well and let me know your opinion.

  57. Avatar
    free accounts minecraft over 4 years después:

    After going over a few of the articles on your site, I honestly like your technique of blogging. I book-marked it to my bookmark site list and will be checking back soon. Take a look at my website as well and let me know your opinion.

  58. Avatar
    dopamine supplements over 4 years después:

    Theѕе are actually enormous ideas in regɑrding blogging. You have touched some fastidious things here. Any way keep up wrinting.

  59. Hello! I’ve been following your web site for a long time now and finally got the bravery to go ahead and give you a shout out from Porter Texas! Just wanted to mention keep up the great work!

  60. Hello! I’ve been following your web site for a long time now and finally got the bravery to go ahead and give you a shout out from Porter Texas! Just wanted to mention keep up the great work!

  61. Avatar
    How To Win The Lottery over 4 years después:
    Thanks for finally writing about >railscasts downloader script <Loved it!
  62. Avatar
    How To Win The Lottery over 4 years después:
    Thanks for finally writing about >railscasts downloader script <Loved it!
  63. Avatar
    Elmo over 4 years después:

    I am regulɑr visitor, Һow are you everybody? This article ρosted at tɦis site is ɡenuinely gooɗ.

  64. Avatar
    Elmo over 4 years después:

    ӏ amm regular visitor, how are yoou everyboԁy? This article ƿosted att this skte is genuinely good.

  65. Avatar
    penguin books over 4 years después:

    Ԝhat’s uр, its pleawant article гegarding media print, աe all understand media is а wonderful source օf data.

  66. Avatar
    van For rent in manila To Baguio over 4 years después:

    Hi there, of course this piece of writing is in fact pleasant and I have learned lot of things from it concerning blogging. thanks.

  67. Avatar
    van For rent in manila To Baguio over 4 years después:

    Hi there, of course this piece of writing is in fact pleasant and I have learned lot of things from it concerning blogging. thanks.

  68. Avatar
    candy crush game cheats over 4 years después:

    Hi, i feel that i saw you visited my weblog thus i came to go back the favor?.I’m trying to in finding issues to improve my website!I assume its ok to make use of some of your concepts!!

  69. Avatar
    candy crush game cheats over 4 years después:

    Hi, i feel that i saw you visited my weblog thus i came to go back the favor?.I’m trying to in finding issues to improve my website!I assume its ok to make use of some of your concepts!!

  70. Avatar
    https://vimeo.com over 4 years después:

    I really love your website.. Excellent colors & theme. Did you make this website yourself? Please reply back as I’m attempting to create my own personal website and would like to find out where you got this from or what the theme is called. Thank you!

  71. Avatar
    Christel over 4 years después:

    Tremendous issues here. I am very happy to peer your post. Thank you so much and I am taking a look ahead to contact you. Will you please drop me a mail?

  72. Avatar
    Christel over 4 years después:

    Tremendous issues here. I am very happy to peer your post. Thank you so much and I am taking a look ahead to contact you. Will you please drop me a mail?

  73. Avatar
    semillas autoflorecientes feminizadas over 4 years después:

    me siento esto es uno de los tan más importante vitales info para mí. Y i am alegro leyendo su artículo. Pero quiero observación del algunas frecuente cosas , web site gusto es maravillosos , loos artículos es verdaderamente excelente : D.

    justo a la derecha tarea , vítores

  74. Avatar
    semillas autoflorecientes feminizadas over 4 years después:

    me siento esto es uno de los tan más importante vitales info para mí.

    Y i am alegro leyendo su artículo. Pero quiero observación del algunas frecuente cosas , web site gusto es maravillosos , los artículos ees verdaderamente excelente : D. justo a la derecha tarea , vítores

  75. Avatar
    viagra les jeunes aussi concernes over 4 years después:

    Hi there, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam comments? If so how do you protect against it, any plugin or anything you can recommend? I get so much lately it’s driving me crazy so any help is very much appreciated.

  76. Avatar
    lose belly fat over 4 years después:

    Wow! Finaly I ggot a blog from where I know how to genuinely get helpful facts regarding my study and knowledge.

  77. Avatar
    lose belly fat over 4 years después:

    Wow! Finally I got a blog from where I know how to genuinely get helpful facts regarding my study and knowledge.

  78. Avatar
    uninstall google plus android over 4 years después:

    What’s Going down i am new to this, I stumbled upon this I’ve discovered It absolutely helpful and it has aided me out loads. I am hoping to contribute & aid other customers like its aided me. Great job.

  79. Avatar
    uninstall google plus android over 4 years después:

    What’s Going down i am new to this, I stumbled upon this I’ve discovered It absolutely helpful and it has aided me out loads. I am hoping to contribute & aid other customers like its aided me. Great job.

  80. Avatar
    Oscar over 4 years después:

    This article offers clear idea in favor of the new people of blogging, that really how to do running a blog.

  81. Avatar
    Oscar over 4 years después:

    This article offers clear idea in favor of the new people of blogging, that really how to do running a blog.

  82. Avatar
    pusat obat kuat over 4 years después:

    I’ll right away grab your rss feed as I can not to find your email subscription link or newsletter service. Do you have any? Please let me recognize so that I may just subscribe. Thanks.

  83. Avatar
    Elias over 4 years después:

    This is good with the Champion’s Robe, as it helps keep the shield up longer.

    Once upon a time, a group of people worked on a mod.

    Buying new weapons is just part of the customization process included in this third-person shooter.

  84. Avatar
    Elias over 4 years después:

    This is good with the Champion’s Robe, as it helps keep the shield up longer. Once upon a time, a group of people worked on a mod. Buying new weapons is just part of the customization process included in this third-person shooter.

  85. Avatar
    Soload Vendor Theme over 4 years después:

    Your style is unique in comparison to other folks I have read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I will just bookmark this page.

Leave a comment