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.

Improved docs

Jan Curna12bc2193849
diff --git a/src/autoscaling/autoscaled_pool.js b/src/autoscaling/autoscaled_pool.js
index 22bb3156b..ab0199538 100644
--- a/src/autoscaling/autoscaled_pool.js
+++ b/src/autoscaling/autoscaled_pool.js
@@ -84,6 +84,9 @@ const DEFAULT_OPTIONS = {
*
* @param {Number} [options.minConcurrency=1]
* Minimum number of tasks running in parallel.
+ *
+ * *WARNING:* If you set this value too high with respect to the available system memory and CPU, your code might run extremely slow or crash.
+ * If you're not sure, just keep the default value and the concurrency will scale up automatically.
* @param {Number} [options.maxConcurrency=1000]
* Maximum number of tasks running in parallel.
* @param {Number} [options.desiredConcurrencyRatio=0.95]
@@ -185,6 +188,8 @@ class AutoscaledPool {
/**
* Overrides min concurrency configuration.
*
+ * *WARNING:* If you set this value too high with respect to the available system memory and CPU, your code might run extremely slow or crash.
+ * If you're not sure, just keep the default value and the concurrency will scale up automatically.
* @param {Number} minConcurrency
*/
setMinConcurrency(minConcurrency) {
diff --git a/src/basic_crawler.js b/src/basic_crawler.js
index 1fce54e16..29dbc29ba 100644
--- a/src/basic_crawler.js
+++ b/src/basic_crawler.js
@@ -115,6 +115,9 @@ const DEFAULT_OPTIONS = {
* are provided by `BasicCrawler` and cannot be overridden.
* @param {Object} [options.minConcurrency=1]
* Sets the minimum concurrency (parallelism) for the crawl. Shortcut to the corresponding {@link AutoscaledPool} option.
+ *
+ * *WARNING:* If you set this value too high with respect to the available system memory and CPU, your crawler will run extremely slow or crash.
+ * If you're not sure, just keep the default value and the concurrency will scale up automatically.
* @param {Object} [options.maxConcurrency=1000]
* Sets the maximum concurrency (parallelism) for the crawl. Shortcut to the corresponding {@link AutoscaledPool} option.
*/
diff --git a/src/cheerio_crawler.js b/src/cheerio_crawler.js
index 99721adc0..012f61c80 100644
--- a/src/cheerio_crawler.js
+++ b/src/cheerio_crawler.js
@@ -174,6 +174,9 @@ const DEFAULT_OPTIONS = {
* are provided by `CheerioCrawler` and cannot be overridden.
* @param {Object} [options.minConcurrency=1]
* Sets the minimum concurrency (parallelism) for the crawl. Shortcut to the corresponding {@link AutoscaledPool} option.
+ *
+ * *WARNING:* If you set this value too high with respect to the available system memory and CPU, your crawler will run extremely slow or crash.
+ * If you're not sure, just keep the default value and the concurrency will scale up automatically.
* @param {Object} [options.maxConcurrency=1000]
* Sets the maximum concurrency (parallelism) for the crawl. Shortcut to the corresponding {@link AutoscaledPool} option.
*/
diff --git a/src/puppeteer_crawler.js b/src/puppeteer_crawler.js
index bf59c5901..6075b7c0f 100644
--- a/src/puppeteer_crawler.js
+++ b/src/puppeteer_crawler.js
@@ -173,6 +173,9 @@ const PAGE_CLOSE_TIMEOUT_MILLIS = 30000;
* are provided by `PuppeteerCrawler` and should not be overridden.
* @param {Object} [options.minConcurrency=1]
* Sets the minimum concurrency (parallelism) for the crawl. Shortcut to the corresponding {@link AutoscaledPool} option.
+ *
+ * *WARNING:* If you set this value too high with respect to the available system memory and CPU, your crawler will run extremely slow or crash.
+ * If you're not sure, just keep the default value and the concurrency will scale up automatically.
* @param {Object} [options.maxConcurrency=1000]
* Sets the maximum concurrency (parallelism) for the crawl. Shortcut to the corresponding {@link AutoscaledPool} option.
*/