Skip to content

Instantly share code, notes, and snippets.

@JuhQ
Created July 24, 2012 16:59
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 JuhQ/eefae83993da275b141c to your computer and use it in GitHub Desktop.
Save JuhQ/eefae83993da275b141c to your computer and use it in GitHub Desktop.
require 'rss'
require 'open-uri'
url = "http://feeds.feedburner.com/ampparit-it"
content = ""
open(url) do |f|
content = f.read
end
rss = RSS::Parser.parse(content, false)
rss.items.each do |item|
# this just prins ${item.title} multiple times
puts "${item.title}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment