Nokolexbor

Nokolexbor is a drop-in replacement for Nokogiri. It's 4.7x faster at parsing HTML and up to 1352x faster at CSS selectors.
It's a performance-focused HTML5 parser for Ruby based on Lexbor. It supports both CSS selectors and XPath. Nokolexbor's API is designed to be 1:1 compatible as much as possible with Nokogiri's API.
Requirements
Nokolexbor is shipped with pre-compiled gems on most common platforms:
- Linux:
x86_64 and aarch64
- macOS:
x86_64 and arm64
- Windows:
ucrt64
If you are on a supported platform, just jump to the Installation section. Otherwise, you need to install CMake to compile C extensions:
macOS
brew install cmake
Linux (Debian, Ubuntu, etc.)
sudo apt-get install cmake
Installation