Skip to content

Instantly share code, notes, and snippets.

@adrianhorning08
Created January 19, 2024 19:26
Show Gist options
  • Save adrianhorning08/698eb890dbe015ee56e8ceff7f11a023 to your computer and use it in GitHub Desktop.
Save adrianhorning08/698eb890dbe015ee56e8ceff7f11a023 to your computer and use it in GitHub Desktop.
Proxy Puppeteer
// local setup
const browser = await puppeteerExtra.launch({
headless: false,
args: [`--proxy-server=http://${ip}:${port}`],
// devtools: true,
executablePath:
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
});
const page = await browser.newPage();
await page.authenticate({
username: "user",
password: "pass",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment