Puppeteer + luminati

安装完lpm后,通过如下代码,即可在headless下使用luminati

const puppeteer = require(‘puppeteer’);

(async () => {
const browser = await puppeteer.launch({
headless: false,
args: [‘–proxy-server=127.0.0.1:24000’]
});

const page = await browser.newPage();
await page.authenticate
await page.goto(‘http://lumtest.com/myip.json’);
await page.screenshot({path: ‘example.png’});
await browser.close();
})();

puppeteer+luminati的视频教程 >>