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
App: cosmetic change in warning message
Jan Curnb6f9fe928f43
diff --git a/src/autoscaling/snapshotter.js b/src/autoscaling/snapshotter.jsindex bcf5d4be3..db99ba731 100644--- a/src/autoscaling/snapshotter.js+++ b/src/autoscaling/snapshotter.js@@ -246,7 +246,7 @@ class Snapshotter {const isCriticalOverload = usedBytes > criticalOverloadBytes;if (isCriticalOverload) {const usedPercentage = usedBytes / this.maxMemoryBytes * 100;- const toMb = bytes => bytes / (1024 ** 2);+ const toMb = bytes => Math.round(bytes / (1024 ** 2));log.warning(`Memory is critically overloaded. Used ${toMb(usedBytes)} MB of ${toMb(this.maxMemoryBytes)} MB (${usedPercentage}%)`);}} catch (e) {