跳到主要内容

cheerio

The fast, flexible & elegant library for parsing and manipulating HTML and XML.

Proven syntax

Cheerio implements a subset of core jQuery. Cheerio removes all the DOM inconsistencies and browser cruft from the jQuery library, revealing its truly gorgeous API.

Blazingly fast

Cheerio works with a very simple, consistent DOM model. As a result parsing, manipulating, and rendering are incredibly efficient.

Incredibly flexible

Cheerio can parse nearly any HTML or XML document. Cheerio works in both browser and server environments.