Hi Sony,
Cool Article!
I have also been looking for a proxy solution when using Puppeteer. One of the easiest solutions I found is using API proxy services. You don't have to worry about finding and setting up proxies.
The basic example will look like this:
import puppeteer from 'puppeteer'; (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); const url = 'https://proxybot.io/api/......?url=https://example.com'; await page.goto(url); })();
What do you think?
Hi Peter, Thanks, this is also good way and reduce headache for setting up a proxy :) Thanks for the addition.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Sony,
Cool Article!
I have also been looking for a proxy solution when using Puppeteer. One of the easiest solutions I found is using API proxy services. You don't have to worry about finding and setting up proxies.
The basic example will look like this:
What do you think?
Hi Peter,
Thanks, this is also good way and reduce headache for setting up a proxy :) Thanks for the addition.