Cuadrix / puppeteer-page-proxy

Additional module to use with 'puppeteer' for setting proxies per page basis.
423 stars 99 forks source link

How do I set up proxies for all pages #56

Closed 3024407779 closed 1 year ago

3024407779 commented 3 years ago

Do you have a way to set up all page IPs? I need to get all page proxies

3024407779 commented 3 years ago

is anybody there?

CreativeBuilds commented 3 years ago

Do you have a way to set up all page IPs? I need to get all page proxies

This repo is just to use proxies per page, otherwise you can just use the regular way of setting proxies. https://www.zyte.com/blog/how-to-use-a-proxy-in-puppeteer/

Cuadrix commented 1 year ago
const pages = await browser.pages();
for (const page of pages) {
    await useProxy(page, 'https://127.0.0.1:443');
}