Created
November 5, 2010 23:14
-
-
Save rhysforyou/665027 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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