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.

Update actor.js

davidjohnbartond140d6eda14c
diff --git a/src/actor.js b/src/actor.js
index 111696591..d41aba3f9 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -201,7 +201,7 @@ export const main = (userFunc) => {
}
});
} catch (err) {
- // This can happen e.g. if there's no Promise dependency
+ // This can happen if, e.g. there's no Promise dependency
exitWithError(err, EXIT_CODES.ERROR_UNKNOWN, 'Unknown error occurred');
}
};
@@ -216,7 +216,7 @@ export const main = (userFunc) => {
*
* The result of the function is an {@linkcode ActorRun} object
* that contains details about the actor run and its output (if any).
- * If the actor run failed, the function fails with {@linkcode ApifyCallError} expcetion.
+ * If the actor run failed, the function fails with {@linkcode ApifyCallError} exception.
*
* **Example usage:**
*