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.

Fix missing type definition in PuppeteerCrawler

Ondra Urbanc08cbbbc0892
diff --git a/src/crawlers/puppeteer_crawler.js b/src/crawlers/puppeteer_crawler.js
index 8e8871881..ea786931f 100644
--- a/src/crawlers/puppeteer_crawler.js
+++ b/src/crawlers/puppeteer_crawler.js
@@ -63,7 +63,7 @@ import applyStealthToBrowser from '../stealth/stealth';
* ```
* Where the {@link Request} instance corresponds to the failed request, and the `Error` instance
* represents the last error thrown during processing of the request.
- * @property {object} [launchContext]
+ * @property {PuppeteerLaunchContext} [launchContext]
* Options used by {@link Apify#launchPuppeteer} to start new Puppeteer instances.
* @property {number} [handlePageTimeoutSecs=60]
* Timeout in which the function passed as `handlePageFunction` needs to finish, in seconds.