How to use Infatica Residentical proxy with Puppeteer
Once you have created a proxy list at Infatica, you can use a proxy with Puppeteer.
Puppeteer example:
# In this example a query to ip-api.com is performed from the Infatica proxy.
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
headless: false,
args: ['--proxy-server=ip:port]
});
const page = await browser.newPage();
await page.authenticate({
username: 'USERNAME',
password: 'PASSWORD'
});
await page.goto('https://ip-api.com/');
await page.screenshot({path: 'example.png'});
await browser.close();
})();