Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 889 Bytes

README.mkd

File metadata and controls

45 lines (27 loc) · 889 Bytes

ruby-gumbo

Ruby bindings for Google's Gumbo HTML5 parser.

Getting Started

Stick it in your Gemfile!

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.

Developing

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.

License

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.