Skip to content

Instantly share code, notes, and snippets.

@mach3
Created November 16, 2010 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mach3/701939 to your computer and use it in GitHub Desktop.
Save mach3/701939 to your computer and use it in GitHub Desktop.
Note for getting remote RSS Feed with ruby
#!/usr/bin/ruby
require "open-uri"
require "rss"
begin
rss = open( "<feed url here!>" ){ |f|
RSS::Parser.parse( f.read )
}
rss.channel.items.each{ |r|
p r.title
p r.link
p r.pubDate
}
rescue
p $!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment