Nokogiri: an HTML, XML, SAX, and Reader parser
Usage: nokogiri <uri|path> [options]
Examples:
nokogiri https://www.ruby-lang.org/
nokogiri ./public/index.html
curl -s http://www.nokogiri.org | nokogiri -e'p $_.css("h1").length'
Options:
--type type Parse as type: xml or html (default: auto)
-C file Specifies initialization file to load (default /tmp/.nokogirirc)
-E, --encoding encoding Read as encoding (default: none)
-e command Specifies script from command-line.
--rng <uri|path> Validate using this rng file.
-?, --help Show this message
-v, --version Show version
Options (7)
| Option | Description | Source |
|---|
--type type | Parse as type: xml or html (default: auto) | help |
-C file | Specifies initialization file to load (default /tmp/.nokogirirc) | help |
-E, --encoding encoding | Read as encoding (default: none) | help |
-e command | Specifies script from command-line. | help |
--rng uri|path | Validate using this rng file. | help |
-?, --help | Show this message | help |
-v, --version | Show version | help |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.