jensmeichler
02/12/2025, 8:26 AMHall
02/12/2025, 8:26 AMjensmeichler
02/12/2025, 8:37 AMconst proxyConfiguration = new ProxyConfiguration({tieredProxyUrls: [{[null], ['proxyTier1'], ['proxyTier2']]});
would be a solution where the crawler would always start scraping without proxies, but I don't want to have other requests being scraped without proxy usage 🙁Louis Deconinck
02/12/2025, 9:28 AMjavascript
const proxyConfiguration = new ProxyConfiguration({
newUrlFunction: (sessionId, { request }) => {
if (request?.url.includes('crawlee.dev')) {
return null; // for crawlee.dev, we don't use a proxy
}
return 'http://proxy-1.com'; // for all other URLs, we use this proxy
}
});
jensmeichler
02/12/2025, 10:10 AM