Nokogiri is an HTML and XML parser for Ruby. It provides a fast, robust interface for parsing, searching, and modifying XML and HTML documents using CSS selectors or XPath expressions. Built on top of libxml2 and libxslt, Nokogiri handles malformed HTML gracefully and supports document traversal, manipulation, and transformation. The gem is essential for web scraping, processing RSS feeds, or working with XML-based APIs.
gem install nokogiri Run this gem instantly in your browser without any installation:
Open in RunRuby.dev →All 187 versions available for installation