bisibility — Track Google rankings and Search Console insights. Free during beta.
Try bisibility freeOur product
Favicon of Cheerio

Cheerio

PublishedLast updated

Cheerio is a JavaScript library for parsing and manipulating HTML and XML using a familiar jQuery-like syntax.

Screenshot of Cheerio website

Cheerio is a fast, flexible HTML and XML parsing library that brings jQuery's elegant syntax to server-side JavaScript.

Key Features:

  • jQuery Syntax - Use familiar selectors and methods to traverse and manipulate the DOM
  • Blazing Performance - Works with a lightweight DOM model for incredibly efficient parsing
  • Cross-Environment - Runs in both Node.js and browser environments seamlessly
  • Forgiving Parser - Handles malformed HTML gracefully without crashing
  • Lightweight - No browser engine overhead, just pure HTML parsing and manipulation
  • Ecosystem - Pairs perfectly with Crawlee, Axios, and other scraping tools

Whether you're building web scrapers, processing HTML templates, or extracting structured data from web pages, Cheerio provides HTML and XML parsing for JavaScript.

Reviewed profile

Quick verdict

Cheerio is for JavaScript teams that need fast jQuery-style HTML or XML parsing after they fetch pages themselves. It does not run browser JavaScript, so dynamic sites need another tool.

Best for
  • Node.js parsing pipelines
  • jQuery-style selectors
  • HTML and XML cleanup
  • High-volume static pages
Not ideal for
  • JavaScript-rendered pages
  • Hosted scraping operations
  • Non-JavaScript SDK needs
Last verified
Jun 26, 2026

Key facts

    Categories:
    Features:
    HTML ParsingXML ParsingCSS SelectorsStructured ExtractionOpen Source

    Share:

    bisibility

    Growing a website? Track its keywords, Google rankings, Search Console insights, and share of voice with bisibility. Free during beta.

    Try bisibility freeOur product

    Source code

    cheeriojs/cheerio

    • Stars

      30.6K
    • Forks

      1.8K
    • Last commit

      2026-11-30
    • License

      MIT
    • Language

      TypeScript

    Metrics recorded 2026-12-01

    Repository details

    License source: Repository license file

    View Repository

    Frequently asked questions

    Why does a Cheerio-based scraper return empty or incomplete data from a JavaScript site?

    Cheerio parses the HTML you supply. It does not execute JavaScript, load external resources, or render the application. Save the response body and check whether it contains the expected records before sending it to an LLM. If the records are present, investigate selectors and transformations. If the response is only an application shell, use a permitted data endpoint or a browser step to obtain the missing content. Validate each pipeline stage with required fields and record identifiers; finishing without an exception does not establish complete extraction.

    Sources (checked ): Welcome to Cheerio! | Cheerio

    How can I prepare HTML with Cheerio before sending content to an LLM?

    Cheerio can select relevant elements, read attributes or text, and remove unwanted nodes. Its text() includes script and style contents; prop("innerText") skips them. Neither option makes Cheerio calculate CSS visibility. Preserve useful structured-data scripts before removing scripts wholesale. Build an explicit input with the source URL, relevant text, and fields you already extracted deterministically. Retain the raw response for comparison and validate the model output against that source. Leave missing values missing and test preprocessing choices on your own pages.

    Sources (checked ): Welcome to Cheerio! | Cheerio; Manipulating the DOM | Cheerio

    Sources

    github.com

    Verified against the cheeriojs/cheerio repository and the npm package.

    Source notes

    Compiled from public GitHub and npm data; confirm current package and license details before relying on them.