const puppeteer = require('puppeteer'); // puppeteer
(async () => {
const browser = await puppeteer.launch({ // run browser
args: ['--proxy-server=138.50.50.50:38886'] // use proxy
});
const page = await browser.newPage(); // open new tab
await page.goto('https://whoer.net'); // go to site
await browser.close() // close browser
})();
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
args: ['--proxy-server=socks5://server:port']
});
const page = await browser.newPage();
await page.goto('https://whoer.net');
await browser.close()
})();
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
args: ['--proxy-server=server:port']
});
const page = await browser.newPage();
await page.authenticate({
username: 'login',
password: 'password',
});
await page.goto('https://whoer.net');
await browser.close()
})();
Puppeteer
JavaScriptNodeJS