What is Cheerio? Facts and alternatives
cheerio.js.org
Cheerio (js.org) is a library for parsing and editing HTML and XML in Node.js with a jQuery-like API.
Visit cheerio.js.org ↗Code on GitHub ↗Alternatives ↓
What it is
| Product | Category | Price | Rating |
|---|---|---|---|
| Parsing and extraction 21 | Freeopen source | 78 5 facts |
3 facts, each linked to its page. Category: tools we compare. Rating: our formula.
Facts
Spec facts 3 · 12 not listed yet
| How you use it 1 | |
|---|---|
| Official JavaScript library? | Yes |
| Where it runs 1 | |
| Code licence | MIT |
| Code 1 | |
| Latest release | V1.2.0, 23 JanYear not shown on page |
12 spec facts not listed on the company's pages yet. Seen one? Send us a source.
Who says what
What Cheerio says about itself
Coverage: sites, countries, IPs 1
| Main claim | Source |
|---|---|
| Cheerio can parse nearly any HTML or XML document.“Cheerio can parse nearly any HTML or XML document.” |
Features 2
| Main claim | Source |
|---|---|
| Cheerio implements a subset of core jQuery.“Cheerio implements a subset of core jQuery.” | |
| Cheerio runs in both browser and server environments.“Cheerio works in both browser and server environments.” | |
Other 2
| Main claim | Source |
|---|---|
| Cheerio has 30.5k GitHub stars.“30.5k stars” | |
| Cheerio is downloaded 120.9M times per month.“120.9M downloads/month” | |
What Cheerio says about others
No claims by Cheerio about others yet.
What others say about Cheerio
Speed 8
| Who | Main claim | Source |
|---|---|---|
| Cheerio is 8-12x faster than full browser scraping solutions and uses up to 40% fewer resources.“Despite some limited features, Cheerio is still 8-12x faster and uses up to 40% less resources than full browser solutions.” | ||
| Cheerio suits static sites and runs almost 70% faster than browser-based alternatives.“Cheerio remains optimal for static websites with minimal JavaScript requirements due to its minimal resource footprint and execution time (almost 70% faster than browser-based alternatives).” | ||
| Cheerio is faster than Puppeteer because it does not run a browser and only parses HTML with a jQuery-like API.“Yes, Cheerio is much faster than Puppeteer. Cheerio doesn't run a browser and only parses HTML using a lightweight jQuery-like API.” | ||
| Cheerio can process hundreds of pages per minute on modest hardware for static scraping.“A Cheerio web scraper can process hundreds of pages per minute on modest hardware.” | ||
| Cheerio does not render pages like a browser, so it is lightweight and fast for large scraping tasks.“Cheerio is well known for its speed. Because Cheerio doesn’t render the website like a browser (it doesn’t apply CSS or load external resources), Cheerio is lightweight and fast.” | ||
| Cheerio parses a typical catalog page in single-digit milliseconds with a small heap footprint, lighter than jsdom or a full browser.“Speed and memory are where Cheerio wins outright, parsing a typical catalog page in single-digit milliseconds with a small heap footprint, far lighter than jsdom or a full browser.” | ||
| Cheerio parses HTML without executing JavaScript or rendering a DOM, giving excellent performance.“Performance is excellent because Cheerio parses HTML without executing JavaScript or rendering a DOM.” | ||
| Cheerio is about 8x faster than JSDOM in preliminary end-to-end benchmarks.“Preliminary end-to-end benchmarks suggest that cheerio is about 8x faster than JSDOM.” | ||
Coverage: sites, countries, IPs 2
| Who | Main claim | Source |
|---|---|---|
| Cheerio cannot interact with a site or reach content generated by scripts; Puppeteer can reach content behind login forms and scripts.“Cheerio can’t interact with the site or access content behind scripts.” | ||
| Cheerio does not handle protected or JS pages; ZenRows includes them.“Protected and JS pages included” |
Features 15
| Who | Main claim | Source |
|---|---|---|
| Cheerio is a Node.js HTML parser with jQuery-style selectors that runs no JavaScript and needs no browser.“Cheerio is an HTML parser for Node.js with jQuery-style selectors.” | ||
| Cheerio cannot click, so the Load More button on the test product page is out of reach.“Cheerio can't click anything though, so the "Load More" button on our product page is out of reach.” | ||
| Cheerio leaves fetching, rendering and blocks to you; ZenRows returns fields directly from a CSS extractor in the request.“Cheerio gives you jQuery selectors over fetched HTML, but the fetch, the rendering and the blocks stay your problem.” | ||
| Cheerio runs selectors on HTML you fetched; ZenRows runs them server-side on the rendered page.“Selectors run server-side, rendered” | ||
| Cheerio cannot log into accounts or manage web sessions because it only parses a single page.“Meanwhile, you technically can’t log into an account with Cheerio since it only concerns itself with parsing a single page, not managing a web session.” | ||
| Cheerio has over 7 million weekly downloads on npm.“Over 7 million weekly downloads on npm” | ||
| Cheerio is a lightweight HTML parser that does not execute JavaScript or load external resources, so it only handles static HTML.“However, what truly makes Cheerio stand out is that it doesn’t execute JavaScript or load external resources.” | ||
| Cheerio parses static HTML with a jQuery-like API and does not execute JavaScript.“Cheerio is a fast, lightweight server-side HTML parser (jQuery-like) for static pages but can't run JavaScript” | ||
| Cheerio is a lightweight library for parsing and manipulating HTML and XML.“Cheerio is a fast, flexible, and lightweight library for parsing and manipulating HTML and XML.” | ||
| Cheerio is described as an easy-to-use HTML parser common in TypeScript scraping.“this is an easy to use HTML parser, common in most TypeScript web scraping” | ||
| Cheerio offers a jQuery-like API for traversing and manipulating parsed markup data.“offering an API with methods for traversing and manipulating the code’s data structure” | ||
| Cheerio offers jQuery-style selectors for server-side Node.js parsing and does not run a browser, keeping resource use low.“Cheerio provides jQuery-style selectors for server-side Node.js parsing. It does not run a browser, which keeps resource use low and parsing fast.” | ||
| Cheerio does not execute client-side JavaScript.“Does not execute client-side JavaScript” | ||
| Cheerio with Axios scrapes a site in seconds in JavaScript.“With the combination of Cheerio and Axios, you can scrape any website in seconds.” | ||
| Cheerio is only an HTML parser, with no headless browsing.“Cheerio is solely an HTML parser without headless browsing functionalities.” | ||
Their own tests 2
| Who | Main claim | Source |
|---|---|---|
| Cheerio scrapes a basic page in around 500 milliseconds in the article's speed check.“The following code times the execution of the Cheerio script, which takes around 500 milliseconds (but your mileage may vary):” | ||
| In a 100-run test, Cheerio averaged 300.95 ms to extract content; jsdom averaged 517.16 ms.“Cheerio outperformed jsdom, averaging 300.95 milliseconds. It took jsdom an average of 517.16 milliseconds to extract the same content.” |
Other 2
| Who | Main claim | Source |
|---|---|---|
| Cheerio has a simple syntax and an easy learning curve, while Puppeteer is steeper because it does more.“It has an easy learning curve thanks to its simple syntax.” | ||
| jsdom has about 10.8 million GitHub users, Cheerio 1.3 million.“jsdom polling 10.8 million users” |
These are the companies' own claims, each linked to its page. A company name opens both sides. Every row is shown. Short view.
Alternatives
The closest tools from other companies, and how each differs on facts from their own pages. Not a ranking: the scrapenews rating lives in the compare tables.
| Tool | Price | How it differs |
|---|---|---|
| Free | They differ on 1 of 2 points we have facts for on both. Also different: latest release. | |
| Free | They differ on 2 of 2 points we have facts for on both. Also different: licence, latest release. | |
| Free | They differ on 2 of 2 points we have facts for on both. Also different: licence, latest release. |
Related
- Fake data for scrapers Guide
- How to scrape a website Guide