mw: reimplement with Nokogiri in place of Hpricot