Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Improved docs

Jan Curnb219994f0eac
diff --git a/src/cheerio_crawler.js b/src/cheerio_crawler.js
index 366bb297f..51f6efac9 100644
--- a/src/cheerio_crawler.js
+++ b/src/cheerio_crawler.js
@@ -65,7 +65,7 @@ const DEFAULT_OPTIONS = {
* // Crawl the URLs
* const crawler = new Apify.CheerioCrawler({
* requestList,
- * handlePageFunction: async ({ $, html, request }) => {
+ * handlePageFunction: async ({ request, response, html, $ }) => {
*
* const data = [];
*