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.

Small fix in CheerioCrawler arguments

Jan Curn5ca6ba587e2c
diff --git a/src/cheerio_crawler.js b/src/cheerio_crawler.js
index 09c5ce94b..f2aebeec1 100644
--- a/src/cheerio_crawler.js
+++ b/src/cheerio_crawler.js
@@ -221,8 +221,8 @@ class CheerioCrawler {
checkParamOrThrow(requestOptions, 'options.requestOptions', 'Maybe Object');
checkParamOrThrow(requestTimeoutSecs, 'options.requestTimeoutSecs', 'Number');
checkParamOrThrow(handlePageTimeoutSecs, 'options.handlePageTimeoutSecs', 'Number');
- checkParamOrThrow(ignoreSslErrors, 'options.ignoreSslErrors', 'Boolean');
- checkParamOrThrow(useApifyProxy, 'options.useApifyProxy', 'Boolean');
+ checkParamOrThrow(ignoreSslErrors, 'options.ignoreSslErrors', 'Maybe Boolean');
+ checkParamOrThrow(useApifyProxy, 'options.useApifyProxy', 'Maybe Boolean');
checkParamOrThrow(apifyProxyGroups, 'options.apifyProxyGroups', 'Maybe [String]');
checkParamOrThrow(apifyProxySession, 'options.apifyProxySession', 'Maybe String');
checkParamOrThrow(proxyUrls, 'options.proxyUrls', 'Maybe [String]');