I'm trying to load a page with puppeteer. but it just not working , first here's the code :
const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
puppeteer.use(StealthPlugin());
const useProxy = require('puppeteer-page-proxy');
(async () => {
const browser = await puppeteer.launch({headless:false});
const page = await browser.newPage();
await page.setRequestInterception(true);
const proxy ='https://163.116.159.237:8081'
console.log(proxy)
await useProxy(page, proxy);
await page.goto('https://whatismyipaddress.com/');
})();
after running the script . I'm getting an a timeout error the browser is opening , but the page just not I've tried to change the proxy , but the result is the same I can't figure out why, because I'm doing the same thing as suggested in the package page site