Registry / serialization / nokogiri

nokogiri

JSON →
library1.19.4rbrubygems✓ verified 23d ago

Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby. It provides a sensible, easy-to-understand API for reading, writing, modifying, and querying documents. It is fast and standards-compliant by relying on native parsers like libxml2, libgumbo, or xerces.

gem install nokogiri
INSTALL
IMPORT
SIG · NOKOGIRI
N
nokogiri
serializationrubyv1.19.4
Install
833ms avg
Import
37ms
Disk
11MB
Pass rate
6/ 6
Env Coverage6 / 6
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.19.4 x86_64-linux-gnu · gem install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
ruby 3.23.43 runs
installs and imports cleanly · install 0.0s · import 0.040s · 10.3MB
glibc
ruby 3.23.43 runs
installs and imports cleanly · install 0.8s · import 0.033s · 11MB
11MB installed
● package 11MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Nokogiri
require 'nokogiri'

Parse an HTML string and extract text from an element

require 'nokogiri' doc = Nokogiri::HTML('<html><body><h1>Hello</h1></body></html>') puts doc.at_css('h1').text
Debug
Known issues
breakingNokogiri requires native extensions (libxml2/libgumbo) which may fail to compile on some systems
fix
Install system dependencies (libxml2-dev, libxslt1-dev) or use the precompiled gem via `gem install nokogiri --platform=ruby`
affects: >= 1.0.0
Upgrade
Version history
1.19.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
nokogiri — gem install nokogiri · libregistry