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.

refactor: Remove redundant fields from `StatisticsPersistedState` (#2475)

Jan Buchar72ebcd9ffe89
diff --git a/packages/core/src/crawlers/statistics.ts b/packages/core/src/crawlers/statistics.ts
index 2f346ca6a..227ecdacb 100644
--- a/packages/core/src/crawlers/statistics.ts
+++ b/packages/core/src/crawlers/statistics.ts
@@ -464,11 +464,8 @@ export interface StatisticPersistedState extends Omit<StatisticState, 'statsPers
statsId: number;
requestAvgFailedDurationMillis: number;
requestAvgFinishedDurationMillis: number;
- requestsFinishedPerMinute: number;
- requestsFailedPerMinute: number;
requestTotalDurationMillis: number;
requestsTotal: number;
- crawlerRuntimeMillis: number;
crawlerLastStartTimestamp: number;
statsPersistedAt: string;
}