Nokogiri is an HTML, XML, SAX, and Reader parser with XPath and CSS selector support. It claims to be a drop in replacement for Hpricot, and it claims to be faster. I think the latter has been addressed but the drop-in bit, well. You see, the Hpricot’s gem had always in the past, just installed, but with Nokogiri I had dependency problems. Turns out I needed a few extra libs that were not installed on my machine. Here’s how I got things going again:
# It seems you need the latest version of rubygems sudo gem update --system # and some RPM's sudo yum install libxml libxml-devel libxslt libxslt-devel # now the gem should install ok sudo gem install nokogiri