thenetaji
07/26/2025, 5:10 PMAnswer Overflow
07/26/2025, 5:10 PMluigi.ruocco
07/28/2025, 9:49 AMconst crawler = new CheerioCrawler(
{
proxyConfiguration: await Actor.createProxyConfiguration({ groups: ['RESIDENTIAL'], countryCode: 'US' }),
requestHandler: async ({ proxyInfo }) => { log.info(proxyInfo?.url ?? ''); },
preNavigationHooks: [
async (context) => {
context.proxyInfo = await (await Actor.createProxyConfiguration({
groups: ['RESIDENTIAL'],
countryCode: 'IT',
}))?.newProxyInfo();
},
],
},
);thenetaji
07/28/2025, 10:30 AM