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.

fixed scroller

Petr Patekcaf09a6b32a7
diff --git a/docs/api/CheerioCrawler.md b/docs/api/CheerioCrawler.md
index f9a262c8f..68d6ac696 100644
--- a/docs/api/CheerioCrawler.md
+++ b/docs/api/CheerioCrawler.md
@@ -102,7 +102,9 @@ await crawler.run();
<pre><code>{
$: Cheerio, // the Cheerio object with parsed HTML
body: String|Buffer // the request body of the web page
- json: Object, // the parsed object from JSON string if the response contains the content type application/json
+ // the parsed object from JSON string
+ // if the response contains the content type application/json
+ json: Object,
request: Request,
contentType: Object, // Parsed `Content-Type` header
response: Object // An instance of Node&#39;s http.IncomingMessage object,
diff --git a/src/crawlers/cheerio_crawler.js b/src/crawlers/cheerio_crawler.js
index 2532f1161..01136c872 100644
--- a/src/crawlers/cheerio_crawler.js
+++ b/src/crawlers/cheerio_crawler.js
@@ -127,7 +127,9 @@ const DEFAULT_OPTIONS = {
* {
* $: Cheerio, // the Cheerio object with parsed HTML
* body: String|Buffer // the request body of the web page
- * json: Object, // the parsed object from JSON string if the response contains the content type application/json
+ * // the parsed object from JSON string
+ * // if the response contains the content type application/json
+ * json: Object,
* request: Request,
* contentType: Object, // Parsed `Content-Type` header
* response: Object // An instance of Node's http.IncomingMessage object,