mofo 0.1 - an Hpricot-powered Ruby microformat parser

0 views
Skip to first unread message

Chris Wanstrath

unread,
Nov 10, 2006, 1:24:05 AM11/10/06
to mofo
mofo is a microformat parser written using the fast Hpricot html
parser, and the 0.1 release is out. It currently supports hCard,
hReviews, hCalendar, hAtom, rel-tag, rel-bookmark, and XOXO. Sure, it
could use some love, so help out? If you find a page it isn't parsing
correctly please let us know. Appreciated.

Visit README or the christening blog entry at
http://errtheblog.com/post/37 for more information.

Oh, one more thing: make sure you have the newest hpricot gem:

gem install hpricot --source code.whytheluckystiff.net

Quickstart:

$ sudo gem install mofo
$ irb -rubygems
>> require 'mofo'
=> true
>> fireball = HCard.find 'http://flickr.com/people/gruber/'
=> #<HCard:0x6db898 ... >
>> fireball.nickname
=> "gruber"
>> fireball.url
=> "http://daringfireball.net/"
>> fireball.n.family_name
=> "Gruber"
>> fireball.title
=> "Raconteur"
>> fireball.adr.locality
=> "Philadelphia"
>> fireball.logo
=> "http://static.flickr.com/9/buddyicons/4462...@N00.jpg?1117572751"

Reply all
Reply to author
Forward
0 new messages