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.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
chore: make the regexp option optional when using `requestsFromUrl` with RQ
Martin Adámeka51abd429f13
diff --git a/packages/core/src/storages/request_queue.ts b/packages/core/src/storages/request_queue.tsindex a15e171c6..c73a43d6f 100644--- a/packages/core/src/storages/request_queue.ts+++ b/packages/core/src/storages/request_queue.ts@@ -412,7 +412,7 @@ export class RequestQueue {ow(requests, ow.array.ofType(ow.any(ow.string,ow.object.partialShape({ url: ow.string, id: ow.undefined }),- ow.object.partialShape({ requestsFromUrl: ow.string, regex: ow.regExp }),+ ow.object.partialShape({ requestsFromUrl: ow.string, regex: ow.optional.regExp }),)));ow(options, ow.object.exactShape({forefront: ow.optional.boolean,