Using Smart Proxy Manager with Puppeteer

Note

Puppeteer requires Node.js and npm installed.

Installation

Download and install Puppeteer:

$ npm install puppeteer

Sample script

Here is a sample script you can use to test the integration of PLaywright with Smart Proxy Manager, once you have installed the Headless Proxy.

const puppeteer = require('puppeteer');

async function main() {
    var browser = await puppeteer.launch({
        ignoreHTTPSErrors: true,
        args: ['--proxy-server=localhost:3128']
    });
    var url = "https://toscrape.com/"
    const page = await browser.newPage({ignoreHTTPSErrors: true});
    await page.goto(url);
    await page.screenshot({path: 'screenshot.png', fullPage: true});
    await browser.close();
};

main();