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.

chore: make the status message interval 10s and add initial message (#1920)

Martin Adámek5ac530a300fe
diff --git a/packages/basic-crawler/src/internals/basic-crawler.ts b/packages/basic-crawler/src/internals/basic-crawler.ts
index e6e6bf4ed..915a8ef7d 100644
--- a/packages/basic-crawler/src/internals/basic-crawler.ts
+++ b/packages/basic-crawler/src/internals/basic-crawler.ts
@@ -458,7 +458,7 @@ export class BasicCrawler<Context extends CrawlingContext = BasicCrawlingContext
handleFailedRequestFunction,
failedRequestHandler,
- statusMessageLoggingInterval = 5,
+ statusMessageLoggingInterval = 10,
} = options;
this.requestList = requestList;
@@ -667,6 +667,7 @@ export class BasicCrawler<Context extends CrawlingContext = BasicCrawlingContext
await this._init();
await this.stats.startCapturing();
const periodicLogger = this.getPeriodicLogger();
+ await this.setStatusMessage(`Initializing the crawler.`);
const sigintHandler = async () => {
this.log.warning('Pausing... Press CTRL+C again to force exit. To resume, do: CRAWLEE_PURGE_ON_START=0 npm start');