I’ve been playing around with Hpricot for the past hour or so. It’s very fast, which is cool. I’ve tried Rubyful Soup in the past, and really liked the api, but it’s pretty slow as it’s pure Ruby. Hpricot is a Ruby wrapper around a C library, which has significant speed advantages.
I don’t really have a usage opinion of one over the other just yet, however, both are included in a work app I’m working on. A bunch of pages are stored in a table. Each page object now has a .soup method and a .hpricot method. I haven’t done anything with either, but it’s good to know they’re there. I’ll probably start parsing some of this stuff out next week.
I love _why’s libraries, perfect mix of oddness combined with genuine usefulness. Although I ended up not using it for this project, mouseHole was a big learning experience for me. _why’s code is a great learning tool.

0 Responses to “Hpricot”
Leave a Reply
You must login to post a comment.