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.

Modify call opts params type (#27)

Juan Sebastián Gaitán Villamizar31f309486179
diff --git a/src/actor.js b/src/actor.js
index bc3757d19..4ee6ea002 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -257,11 +257,11 @@ export const readyFreddy = () => {
* `input` is expected to be an object that will be stringified to JSON and content type set to
* `application/json; charset=utf-8`. If `opts.contentType` is specified, then `input` must be a
* `String` or `Buffer`.
- * @param {String} [opts.timeoutSecs] Time limit for act to finish, in seconds.
+ * @param {Number} [opts.timeoutSecs] Time limit for act to finish, in seconds.
* If the limit is reached the resulting run will have the `RUNNING` status.
* By default, there is no timeout.
- * @param {String} [opts.fetchOutput=true] If `false` then the function does not fetch output of the act.
- * @param {String} [opts.disableBodyParser=false] If `true` then the function will not attempt to parse the
+ * @param {Boolean} [opts.fetchOutput=true] If `false` then the function does not fetch output of the act.
+ * @param {Boolean} [opts.disableBodyParser=false] If `true` then the function will not attempt to parse the
* act's output and will return it in a raw `Buffer`.
* @returns {Promise}
*