nokogiri --version (return code: 0)
# Nokogiri (1.6.7.2)
---
warnings: []
nokogiri: 1.6.7.2
ruby:
version: 2.3.1
platform: x86_64-linux-gnu
description: ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
engine: ruby
libxml:
binding: extension
source: system
compiled: 2.9.3
loaded: 2.9.3
nokogiri --help (return code: 0)
Nokogiri: an HTML, XML, SAX, and Reader parser
Usage: nokogiri <uri|path> [options]
Examples:
nokogiri http://www.ruby-lang.org/
nokogiri ./public/index.html
curl -s http://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 /home/ubuntu/.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