← Tool directory
TOOL PROFILE

Cheerio

Parse saved HTML to inspect titles, canonical links, robots directives, and other metadata with CSS selectors.

Open source

Community support

Upvotes come from SearchEngineAnswer members. GitHub stars and reader reviews are counted separately.

Claim this tool if you maintain it.

Best for
Structured data
Setup required
Use a supported Node.js release and supply the HTML source separately.
Costs to check
The library is open source. Collecting HTML across a large site can require crawl infrastructure.
License in catalog
MIT

GitHub repository

GitHub stars
30,538
Forks
1,749
Last push
2026-11-10
Primary language
TypeScript

GitHub snapshot from . Stars count GitHub bookmarks. Reader ratings appear separately below.

How to install Cheerio

  1. Initialize or open a Node.js project and install Cheerio as a dependency.
    npm install cheerio
  2. Import load from cheerio and pass it the contents of a saved HTML file.

First tutorial for Cheerio

  1. Prepare a staging HTML fixture with a title and a canonical link.
  2. Use the title and link[rel=canonical] selectors to read the text and href respectively.
  3. Compare the canonical with your expected target and repeat with a fixture where the canonical link is missing.

Official installation and usage documentation ↗

Where Cheerio fits

Use it to compare SEO metadata across HTML fixtures before releasing a template change.

When to choose another tool
Use a browser automation tool when the metadata is inserted or changed by JavaScript after the page loads.
First evaluation
Prepare two HTML fixtures with different canonical targets and read both with the same selector.
How to interpret the result
Check the extracted values against the saved markup. The results describe the supplied HTML before browser scripts run.

Reviews and discussion

Reader reviews

Be the first to share your experience with this tool.

Discussion

Ask a question or share a setup tip.

Write a review or join the discussion

Reviews should describe your own experience. All submissions are moderated.

Flag an outdated detail

Include the field that needs updating and a source link. Copy your draft, then use the corrections policy to contact the editorial team.