A tiny parser for RSS and Atom feeds built on Nokogiri.
Ruby
Latest commit d7ee773 Sep 26, 2010 Giovanni Lion Parsing enclosure in rss2 and atom
Permalink
Failed to load latest commit information.
lib Parsing enclosure in rss2 and atom Sep 27, 2010
spec Parsing enclosure in rss2 and atom Sep 27, 2010
.gitignore
LICENSE
README Convert to use Nokogiri instead Jan 17, 2010
Rakefile Parsing enclosure in rss2 and atom Sep 27, 2010
TODO Added category fetching for rss2 feeds Mar 21, 2009
VERSION.yml Bumped to v 0.7.0 Jun 4, 2010
feed_me.gemspec Bumped to v 0.7.0 Jun 4, 2010

README

Feed Me
=======

Feed Me is a simple parser for RSS2 and Atom feed, adding other feed formats should be trivial. Feed Me is pretty minimal and basically only does translation/cleanup from different feed formats to a consistent API. It is designed to be minimal.

Feed Me is built on the excellent Nokogiri parser.

Use it like this:

    file = File.read('some_feed.atom')
    
    feed = FeedMe.parse(file)
    
    feed.title
    feed.author.name
    feed.entries.each do |entry|
      entry.title
      entry.content
    end

Check out the specs or lib/feed_me/consts.rb for the complete API.

DISCLAIMER: This is very much alpha software, use at your own risk!