namelessjon / feed_me forked from jnicklas/feed_me
- Source
- Commits
- Network (4)
- Issues (0)
- Downloads (3)
- Wiki (1)
- Graphs
-
Branch:
master
feed_me /
| name | age | message | |
|---|---|---|---|
| |
.autotest | Mon Mar 10 02:53:23 -0700 2008 | |
| |
.gitignore | Mon Apr 14 14:20:33 -0700 2008 | |
| |
LICENSE | Mon Mar 10 02:53:23 -0700 2008 | |
| |
README | Thu Apr 24 04:02:26 -0700 2008 | |
| |
Rakefile | ||
| |
TODO | Sat Mar 21 12:56:55 -0700 2009 | |
| |
VERSION.yml | Sat Mar 21 12:57:25 -0700 2009 | |
| |
feed_me.gemspec | Sat Mar 21 12:57:33 -0700 2009 | |
| |
lib/ | ||
| |
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!
