
The industry standard for working with HTML in JavaScript | cheerio
Aug 2, 2015 · Incredibly flexible Cheerio can parse nearly any HTML or XML document. Cheerio works in both browser and server environments.
Welcome to Cheerio!
Once you have selected an element, you can use the Cheerio object to manipulate the element. Here, we will select the h2 element with the class title, and then change the text inside it.
Selecting Elements | cheerio
Cheerio allows users to select elements from an HTML document using CSS selectors. This allows you to select elements based on criteria such as their tag name, class name, and …
Loading Documents | cheerio
Cheerio provides several methods for loading HTML documents and parsing them into a DOM structure. These methods are useful for different scenarios, depending on the type and source …
Interface: CheerioAPI () | cheerio
The .load static method defined on the "loaded" Cheerio factory function is deprecated. Users are encouraged to instead use the load function exported by the Cheerio module.
Tutorials - Advanced | cheerio
Tutorials - Advanced Tutorials - Advanced 📄️ The `extract` method Extract multiple values at once. 📄️ Configuring Cheerio Configure Cheerio to work with different documents. 📄️ …
cheerio
Stack Overflow GitHub More Blog Attribution Copyright © 2025 The Cheerio contributors
Extracting Data with the extract Method | cheerio
The returned object will have a links property whose value is an array of these strings. Putting it all together Let's fetch the latest release of Cheerio from GitHub and extract the release date and …
Manipulating the DOM | cheerio
In this guide, we will focus specifically on manipulating elements within a document using Cheerio. We will cover methods for modifying element attributes and properties, adding and removing …
Function: fromURL () | cheerio
By default, redirects are allowed and non-2xx responses are rejected. Parameters url The URL to load the document from. string | URL options CheerioRequestOptions = {} The options to pass …