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.

Fixing container URL usage in liveview

Marek Trunkat12d887b1cc6f
diff --git a/src/puppeteer_live_view_client.js b/src/puppeteer_live_view_client.js
index c27029219..1e9fe5d00 100644
--- a/src/puppeteer_live_view_client.js
+++ b/src/puppeteer_live_view_client.js
@@ -274,7 +274,7 @@ export const layout = (url) => {
<div id="index">Waiting for WebSocket connection.</div>
<div id="page-detail" class="hidden"></div>
<script>
- const ws = new WebSocket("ws://${url}");
+ const ws = new WebSocket("${url}");
const DESTROY_FADEOUT = ${DESTROY_FADEOUT_MILLIS};
const createPage = ${createPage.toString()};
const createPageCollection = ${createPageCollection.toString()};