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.

chore: make RQ option optional for the context bound `enqueueLinks`

Martin Adámekc5a1022e961b
diff --git a/packages/core/src/crawlers/crawler_commons.ts b/packages/core/src/crawlers/crawler_commons.ts
index 73329a058..5aea6b378 100644
--- a/packages/core/src/crawlers/crawler_commons.ts
+++ b/packages/core/src/crawlers/crawler_commons.ts
@@ -48,7 +48,7 @@ export interface CrawlingContext<Crawler = unknown, UserData extends Dictionary
* @param options All `enqueueLinks()` parameters are passed via an options object.
* @returns Promise that resolves to {@apilink BatchAddRequestsResult} object.
*/
- enqueueLinks(options: EnqueueLinksOptions): Promise<BatchAddRequestsResult>;
+ enqueueLinks(options: Partial<EnqueueLinksOptions>): Promise<BatchAddRequestsResult>;
/**
* Fires HTTP request via [`got-scraping`](https://crawlee.dev/docs/guides/got-scraping), allowing to override the request