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
fix: allow passing `requestsFromUrl` to `RequestListOptions` in TS
Martin Adámekc0ae5bd9d300
diff --git a/src/request_list.js b/src/request_list.jsindex 22f56968b..6f3505354 100644--- a/src/request_list.js+++ b/src/request_list.js@@ -20,7 +20,7 @@ const CONTENT_TYPE_BINARY = 'application/octet-stream';/*** @typedef RequestListOptions- * @property {Array<RequestOptions|Request|string>} [sources]+ * @property {Array<RequestOptions | Request | { requestsFromUrl: string } | string>} [sources]* An array of sources of URLs for the {@link RequestList}. It can be either an array of strings,* plain objects that define at least the `url` property, or an array of {@link Request} instances.*