public
Description: A tiny parser for RSS and Atom feeds built on Hpricot
Homepage:
Clone URL: git://github.com/jnicklas/feed_me.git
jnicklas (author)
Sun May 10 12:54:23 -0700 2009
commit  3e4073fa5a6e8ae9ebbd13288f174ae9439425de
tree    f02680ec9c63a0a863bf373e88b651527e514f4f
parent  517c879c44c3b7d11a21852469a8a91f0a9fa1d4
name age message
file .autotest Mon Mar 10 02:53:23 -0700 2008 muchos stuff [jnicklas]
file .gitignore Mon Apr 14 14:20:33 -0700 2008 specs for entries [jnicklas]
file LICENSE Mon Mar 10 02:53:23 -0700 2008 muchos stuff [jnicklas]
file README Thu Apr 24 04:02:26 -0700 2008 added easier API for opening and parsing feeds [jnicklas]
file Rakefile Sun May 10 12:37:36 -0700 2009 Spec task without rcov [jnicklas]
file TODO Sat Mar 21 12:56:55 -0700 2009 Added category fetching for rss2 feeds [namelessjon]
file VERSION.yml Sat Mar 21 12:57:25 -0700 2009 Version bump to 0.0.5 [namelessjon]
file feed_me.gemspec Sat Mar 21 12:57:33 -0700 2009 Regenerated gemspec for version 0.0.5 [namelessjon]
directory lib/ Loading commit data...
directory spec/
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 Hpricot parser written by _why the lucky stiff.

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!