Skip to content

Instantly share code, notes, and snippets.

@weatheredwatcher
Created August 11, 2010 14:46
Show Gist options
  • Save weatheredwatcher/519086 to your computer and use it in GitHub Desktop.
Save weatheredwatcher/519086 to your computer and use it in GitHub Desktop.
require 'rss'
require 'open-uri'
@contentArray = []
rss = RSS::Parser.parse open('http://weatheredwatcher.posterous.com/rss.xml').read, false
puts rss.channel.title
rss.items.each_with_index do |item,i|
puts "" if i.zero? or item.date.day != rss.items[i-1].date.day
line = "#{item.title} <br />written by weatheredwatcher at #{item.date} <br /> #{item.description}"
@contentArray.push line
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment