public
Description: A tiny parser for RSS and Atom feeds built on Hpricot
Homepage:
Clone URL: git://github.com/jnicklas/feed_me.git
feed_me / README
100644 23 lines (15 sloc) 0.695 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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!