nokogiri

An HTML, XML, SAX and Reader parser. More information: <https://nokogiri.org>.

Install

All systems
curl cmd.cat/nokogiri.sh
Debian Debian
apt-get install rubygem-nokogiri
Ubuntu
apt-get install rubygem-nokogiri
Arch Arch Linux
pacman -S rubygem-nokogiri
image/svg+xml Kali Linux
apt-get install rubygem-nokogiri
Fedora
dnf install rubygem-nokogiri
Windows (WSL2)
sudo apt-get update sudo apt-get install rubygem-nokogiri
Raspbian
apt-get install rubygem-nokogiri

An HTML, XML, SAX and Reader parser. More information: <https://nokogiri.org>.

  • Parse the contents of a URL or file:
    nokogiri url|path/to/file
  • Parse as a specific type:
    nokogiri url|path/to/file --type xml|html
  • Load a specific initialization file before parsing:
    nokogiri url|path/to/file -C path/to/config_file
  • Parse using a specific encoding:
    nokogiri url|path/to/file --encoding encoding
  • Validate using a RELAX NG file:
    nokogiri url|path/to/file --rng url|path/to/file

© tl;dr; authors and contributors