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.

Add deprecation warning to pageOpsTimeoutMillis

Ondra Urban6463b53db890
diff --git a/src/puppeteer_crawler.js b/src/puppeteer_crawler.js
index c6b77b63f..325bb8792 100644
--- a/src/puppeteer_crawler.js
+++ b/src/puppeteer_crawler.js
@@ -169,6 +169,8 @@ export default class PuppeteerCrawler {
this.handlePageFunction = handlePageFunction;
this.gotoFunction = gotoFunction;
+
+ if (pageOpsTimeoutMillis) log.warning('options.pageOpsTimeoutMillis is deprecated, use options.handlePageTimeoutSecs instead.');
this.handlePageTimeoutSecs = handlePageTimeoutSecs || Math.ceil(pageOpsTimeoutMillis / 1000);
this.puppeteerPoolOptions = {