Ruby bindings for Google's Gumbo HTML5 parser.
Stick it in your
gem 'ruby-gumbo', '~> 1.1'
And then parse away:
require 'gumbo' doc = Gumbo::parse(html)
You'll probably want to peruse the documentation to see how to navigate a document and its nodes.
Grab the repository, and make sure to include submodules:
git checkout https://github.com/nevir/ruby-gumbo --recursive
And from there you should be able to
rake build and
gem install pkg/*.gem.
ruby-gumbo is licensed under the ISC license, and packages the gumbo-parser library (APACHE v2.0).
This is not a Google product and is not supported by Google in any way.