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.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Refactor Job#run
Ondra Urban58a901512e64
diff --git a/src/crawlers/statistics.js b/src/crawlers/statistics.jsindex 606c67ef0..d4357671e 100644--- a/src/crawlers/statistics.js+++ b/src/crawlers/statistics.js@@ -10,8 +10,7 @@ class Job {run() {this.lastRunAt = new Date();- this.runs++;- return this.runs;+ return ++this.runs;}finish() {