Skip to content

Instantly share code, notes, and snippets.

@rhysforyou
Created November 5, 2010 23:14
Show Gist options
  • Save rhysforyou/665027 to your computer and use it in GitHub Desktop.
Save rhysforyou/665027 to your computer and use it in GitHub Desktop.
require 'rss/2.0'
require 'open-uri'
open('http://feeds.feedburner.com/RubyInside') do |http|
response = http.read
puts response
result = RSS::Parser.parse(response, false)
puts "Channel: " + result.channel.title
result.items.each_with_index do |item, i|
puts "#{i+1}. #{item.title}" if i < 20
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment