nokogiri(1)

nokogiri1

An html, xml, sax, and reader parser

Overview

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri’s many features is the ability to search documents via XPath or CSS3 selectors. The nokogiri command parses a document, and launches an interactive ruby session (irb(1)), allowing one to analysing the result interactively.

Synopsys

nokogiri <uri|path> [options]

Options

--type [TYPE]

Set the type of the document to be parsed

-E, --encoding encoding

Set the encoding of the document

-e command

Specifies script from command-line

--rng <uri|path>

Validate using this rng file

-?, --help

Show a message very similar to this man page

-v, --version

Show the version of the program

Examples

nokogiri http://www.ruby-lang.org/

nokogiri ./public/index.html

curl -s http://nokogiri.org | nokogiri -e'p $_.css("h1").length'

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

--rng since Debian 8 (Jessie); -e since Debian 8 (Jessie).

From ruby-nokogiri 1.18.2+dfsg-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.