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
feat: warn if apify proxy is used in proxyUrls (#1173)
Szymon Marczak682f8b7f27b0
diff --git a/src/proxy_configuration.js b/src/proxy_configuration.jsindex d7fce5698..251102b91 100644--- a/src/proxy_configuration.js+++ b/src/proxy_configuration.js@@ -196,6 +196,13 @@ export class ProxyConfiguration {this.log = defaultLog.child({ prefix: 'ProxyConfiguration' });this.config = config;this.isManInTheMiddle = false;++ if (proxyUrls && proxyUrls.some((url) => url.includes('apify.com'))) {+ this.log.warning(+ 'Some Apify proxy features may work incorrectly. Please consider setting up Apify properties instead of `proxyUrls`.\n'+ + 'See https://sdk.apify.com/docs/guides/proxy-management#apify-proxy-configuration',+ );+ }}/**