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.

Update changelog, fix missing parameter

Ondra Urbanda6c86f7227e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b33c6859a..8c261f35e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
0.11.0 / 2018-01-07
===================
+- **BREAKING CHANGE:** `basicCrawler.abort()`, `cheerioCrawler.abort()` and `puppeteerCrawler.abort()` functions
+ were removed in favor of a single new `autoscaledPool.abort()` function.
+
+- Added a reference to the running `AutoscaledPool` instance to the options object of `BasicCrawler`'s
+ `handleRequestFunction` and to the `handlePageFunction` of `CheerioCrawler` and `PuppeteerCrawler`.
- Added sources persistence option to `RequestList` that works best in conjunction with the state persistence,
but can be toggled separately too.
- Added `Apify.openRequestList()` function to place it in line with `RequestQueue`, `KeyValueStore` and `Dataset`.
diff --git a/src/puppeteer_crawler.js b/src/puppeteer_crawler.js
index 2d8445391..ab3dbb975 100644
--- a/src/puppeteer_crawler.js
+++ b/src/puppeteer_crawler.js
@@ -292,7 +292,7 @@ class PuppeteerCrawler {
try {
const response = await this.gotoFunction({ page, request, autoscaledPool, puppeteerPool: this.puppeteerPool });
await addTimeoutToPromise(
- this.handlePageFunction({ page, request, puppeteerPool: this.puppeteerPool, response }),
+ this.handlePageFunction({ page, request, autoscaledPool, puppeteerPool: this.puppeteerPool, response }),
this.handlePageTimeoutMillis,
'PuppeteerCrawler: handlePageFunction timed out.',
);