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.

More comments

Ondra Urban9a0521e995b3
diff --git a/src/puppeteer_pool.js b/src/puppeteer_pool.js
index 79a20dbd1..a5e27d40d 100644
--- a/src/puppeteer_pool.js
+++ b/src/puppeteer_pool.js
@@ -104,8 +104,13 @@ class PuppeteerInstance {
* // Close all browsers.
* await puppeteerPool.destroy();
* ```
- * @param {Object} [options] All `PuppeteerPool` parameters are passed
+ * @param {Object} [options]
+ * All `PuppeteerPool` parameters are passed
* via an options object with the following keys:
+ * @param {boolean} [options.useLiveView]
+ * Enables the use of a preconfigured {@link LiveViewServer} that serves snapshots
+ * just before a page would be recycled by `PuppeteerPool`. If there are no clients
+ * connected, it has close to zero impact on performance.
* @param {Number} [options.maxOpenPagesPerInstance=50]
* Maximum number of open pages (i.e. tabs) per browser. When this limit is reached, new pages are loaded in a new browser instance.
* @param {Number} [options.retireInstanceAfterRequestCount=100]