Skip to content

Instantly share code, notes, and snippets.

@princePeterHansen
Created February 8, 2020 21:53
Show Gist options
  • Save princePeterHansen/3ba817598988515902534dbc633a9420 to your computer and use it in GitHub Desktop.
Save princePeterHansen/3ba817598988515902534dbc633a9420 to your computer and use it in GitHub Desktop.
const puppeteer = require('puppeteer');
async function run() {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
const proxy = 'https://proxybot.io/api/v1/API_KEY?url=';
const url = 'https://whatismyipaddress.com/';
const pageUrl = proxy + url;
await page.goto(pageUrl);
}
run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment