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.

fix: run browser crawlers in headless mode by default (#1409)

Martin Adámekb207c12b120d
diff --git a/packages/core/src/configuration.ts b/packages/core/src/configuration.ts
index 599c71b17..6d6d4296c 100644
--- a/packages/core/src/configuration.ts
+++ b/packages/core/src/configuration.ts
@@ -57,7 +57,7 @@ export interface ConfigurationOptions {
* ---|---|---
* `memoryMbytes` | `CRAWLEE_MEMORY_MBYTES` | -
* `logLevel` | `CRAWLEE_LOG_LEVEL` | -
- * `headless` | `CRAWLEE_HEADLESS` | -
+ * `headless` | `CRAWLEE_HEADLESS` | `true`
* `defaultDatasetId` | `CRAWLEE_DEFAULT_DATASET_ID` | `'default'`
* `defaultKeyValueStoreId` | `CRAWLEE_DEFAULT_KEY_VALUE_STORE_ID` | `'default'`
* `defaultRequestQueueId` | `CRAWLEE_DEFAULT_REQUEST_QUEUE_ID` | `'default'`
@@ -106,6 +106,7 @@ export class Configuration {
availableMemoryRatio: 0.25,
storageClientOptions: {},
purgeOnStart: true,
+ headless: true,
persistStateIntervalMillis: 60_000,
systemInfoIntervalMillis: 60_000,
};