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
Making 'opts' optional parameter
Marek Trunkate4f683f5e92b
diff --git a/src/actor.js b/src/actor.jsindex 2f3c2bf81..ba1bb47f7 100644--- a/src/actor.js+++ b/src/actor.js@@ -404,7 +404,7 @@ export const readyFreddy = () => {* @param {String} [opts.rawBody] - If true then returns only OUTPUT value without content type and other info. Default is false.* @param {String} [opts.disableBodyParser] - If true then doesn't parse the body - ie. JSON to object. Default is false.*/-export const call = (actId, input, opts) => {+export const call = (actId, input, opts = {}) => {const { acts, keyValueStores } = apifyClient;checkParamOrThrow(actId, 'actId', 'String');