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
Update live view readme docs
Ondra Urban30b4b006906c
diff --git a/docs/guides/puppeteer_live_view.md b/docs/guides/puppeteer_live_view.mdindex d3fc9e4d3..3bfe6ec18 100644--- a/docs/guides/puppeteer_live_view.md+++ b/docs/guides/puppeteer_live_view.md@@ -9,33 +9,33 @@ This is useful for debugging your crawlers that run in headless mode.The live view dashboard is run on a web server that is started on a port specifiedby the `APIFY_CONTAINER_PORT` environment variable (typically 4321).-To enable live view, pass the `liveView: true` option to-[`Apify.launchPuppeteer()`](../api/apify#module_Apify.launchPuppeteer):+To enable live view, pass the `useliveView: true` option to+the `puppeteerPoolOptions` of [`PuppeteerCrawler`](../api/puppeteercrawler#new_PuppeteerCrawler_new):```js-const browser = Apify.launchPuppeteer({ liveView: true });+const crawler = new Apify.PuppeteerCrawler({+ puppeteerPoolOptions: {+ useLiveView: true,+ }+ // other options+});```-or to [`PuppeteerCrawler`](../api/puppeteercrawler#new_PuppeteerCrawler_new) constructor as follows:+or directly to the [`PuppeteerPool`](../api/puppeteerpool) constructor, when using it standalone:```js-const crawler = new PuppeteerCrawler({- launchPuppeteerOptions: { liveView: true },+const pool = new Apify.PuppeteerPool({+ useLiveView: true,// other options})```To simplify debugging, you may also want to add the-`{ slowMo: 300 }` option to slow down all browser operation.+`{ slowMo: 300 }` option to slow down all browser operations.See <a href="https://pptr.dev/#?product=Puppeteer&show=api-puppeteerlaunchoptions" target="_blank">Puppeteer documentation</a> for details.-Once live view is enabled, you can open `http://localhost:4321` and you will see a page like this:----Click on the magnifying glass icon to view page detail, showing page screenshot and raw HTML:--+Once live view is enabled, you can open `http://localhost:4321` and as the crawler runs,+you should see screenshots and HTML of the pages it opens displayed in your browser.-For more information, read the <a href="https://kb.apify.com/actor/debugging-your-actors-with-live-view" target="_blank">Debugging your actors with Live View</a>-article in Apify Knowledge Base.+To use live view on the Apify Platform (after enabling it in your actor),+simply select the Live View tab in your actor run view.