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.

Decrease live view snapshot frequency

Ondra Urban130e62d8ce43
diff --git a/src/live_view/live_view_server.js b/src/live_view/live_view_server.js
index c0b60243e..6b787470e 100644
--- a/src/live_view/live_view_server.js
+++ b/src/live_view/live_view_server.js
@@ -71,7 +71,7 @@ class LiveViewServer {
screenshotDirectoryPath = path.resolve('live_view'),
maxScreenshotFiles = 10,
snapshotTimeoutSecs = 3,
- maxSnapshotFrequencySecs = 1,
+ maxSnapshotFrequencySecs = 2,
} = options;
checkParamOrThrow(screenshotDirectoryPath, 'options.screenshotDirectoryPath', 'String');