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.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Change typecheck for userData
Ondra Urban0fc6afb9131a
diff --git a/src/puppeteer_utils.js b/src/puppeteer_utils.jsindex 0cdaf530c..952ec2cc1 100644--- a/src/puppeteer_utils.js+++ b/src/puppeteer_utils.js@@ -266,7 +266,7 @@ const enqueueLinks = async (...args) => {checkParamOrThrow(selector, 'selector', 'String');checkParamPrototypeOrThrow(requestQueue, 'requestQueue', [RequestQueue, RequestQueueLocal], 'Apify.RequestQueue');checkParamOrThrow(pseudoUrls, 'pseudoUrls', 'Maybe Array');- checkParamOrThrow(userData, 'userData', 'Object');+ checkParamOrThrow(userData, 'userData', 'Maybe Object');// Construct pseudoUrls from input where necessary.const pseudoUrlInstances = constructPseudoUrlInstances(pseudoUrls || []);