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: call `onSkippedRequest` for `AdaptivePlaywrightCrawler.enqueueLinks` (#3043)

Jindřich Bärfc23d34ba7fa
diff --git a/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts b/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts
index 6208fa5c6..7dfd634bf 100644
--- a/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts
+++ b/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts
@@ -678,6 +678,8 @@ export class AdaptivePlaywrightCrawler extends PlaywrightCrawler {
});
return await enqueueLinks({
+ limit: this.calculateEnqueuedRequestLimit(options.limit),
+ onSkippedRequest: this.handleSkippedRequest,
...options,
baseUrl,
requestQueue: {