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: allow creating new adaptive crawler instance without any parameters

Martin Adámek9b7f595a2d70
diff --git a/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts b/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts
index e35b82814..89e2695b6 100644
--- a/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts
+++ b/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts
@@ -224,7 +224,7 @@ export class AdaptivePlaywrightCrawler extends PlaywrightCrawler {
Router.create<AdaptivePlaywrightCrawlerContext>();
constructor(
- options: AdaptivePlaywrightCrawlerOptions,
+ options: AdaptivePlaywrightCrawlerOptions = {},
override readonly config = Configuration.getGlobalConfig(),
) {
const {