Skip to content

@samqiu /railscasts.rb
Last active

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Download free Railscast video
require 'rss'
# Usage
# $ ./railscasts.rb\/
# episodes.rss
# OR
# $ ./railscasts.rb
p 'Downloading rss index'
rss_url = ARGV.first ? ARGV.first : ''
rss_string = open(rss_url).read
rss = RSS::Parser.parse(rss_string, false)
videos_urls = { |it| it.enclosure.url }.reverse
videos_filenames = { |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 = { |video_url|
missing_filenames.any? { |filename| video_url.match filename }
missing_videos_urls.each do |video_url|
filename = video_url.split('/').last
next if File.exists? filename
p filename
p %x(wget #{video_url} -O #{filename}.tmp )
p %x(mv #{filename}.tmp #{filename} )
p 'Finished synchronization'


It's so good!


nice .


Thanks this helps :)


Thanks man its really a great help to us. . . .!! keep the good work like this :)


I modified this to make it work on Windows:


Great stuff! :P
Thanks a bunch!


Can you even download the pro episodes? Wonder what @ryanb thinks of this


@thoughtpunch No, is only download free episdoes.

But, now you can use your own PRO subscription RSS URL for downloading.


Thanx a lot For this!!!


Thanks a lot!


thanks a lot @samqiu , for those who wants to download the PRO EPISODES you can find them all from this torrent .. enjoy :smiley:


thanks a lot


thank you very much it's will be very helpful for us..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.