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.

Improvements in logging

Jan Curn58353ead410d
diff --git a/src/proxy_chain.js b/src/proxy_chain.js
index 63e1e908c..7da068ac7 100644
--- a/src/proxy_chain.js
+++ b/src/proxy_chain.js
@@ -170,7 +170,7 @@ export class ProxyChain {
})
.then(() => {
const childProxyUrl = this._getChildProxyUrl();
- console.log(`Started proxy chain ${childProxyUrl} => ${this._getParentProxyUrl()} (PID: ${this.squidPid}, tmpDir: ${this.tmpDir})`); // eslint-disable-line max-len
+ console.log(`Started proxy chain ${childProxyUrl} => ${this._getParentProxyUrl()} (Squid pid: ${this.squidPid}, temp dir: ${this.tmpDir})`); // eslint-disable-line max-len
return parseUrl(childProxyUrl);
});
@@ -250,7 +250,7 @@ cache_peer_access my_peer allow all
* @return {*}
*/
shutdown() {
- console.log(`Shutting down proxy chain ${this._getChildProxyUrl()} => ${this._getParentProxyUrl()} (pid ${this.squidPid})`); // eslint-disable-line max-len
+ console.log(`Shutting down proxy chain ${this._getChildProxyUrl()} => ${this._getParentProxyUrl()} (Squid pid: ${this.squidPid})`); // eslint-disable-line max-len
if (this._isSquidRunning()) {
try {