Created
August 11, 2010 14:46
-
-
Save weatheredwatcher/519086 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' | |
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