Created
January 19, 2024 19:26
-
-
Save adrianhorning08/698eb890dbe015ee56e8ceff7f11a023 to your computer and use it in GitHub Desktop.
Proxy Puppeteer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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