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
fixed formatting
Petr Patek5c9a23733489
diff --git a/src/autoscaling/snapshotter.js b/src/autoscaling/snapshotter.jsindex c8a18e3ec..05c9a50f9 100644--- a/src/autoscaling/snapshotter.js+++ b/src/autoscaling/snapshotter.js@@ -197,11 +197,8 @@ class Snapshotter {const latestTime = snapshots[idx - 1].createdAt;while (idx--) {const snapshot = snapshots[idx];- if (latestTime - snapshot.createdAt <= sampleDurationMillis) {- sample.unshift(snapshot);- } else {- break;- }+ if (latestTime - snapshot.createdAt <= sampleDurationMillis) sample.unshift(snapshot);+ else break;}return sample;}