Integração

< Back to Integration

Luminati and Puppeteer integration

Luminati Super Proxy and Puppeter Integration

  • Begin by going to your Luminati Dashboard and clicking ‘create a zone’.
  • Choose 'Network type' and click save.
  • Within Puppeter fill in the ‘Proxy IP:Port’ in the 'proxy-server' value, for examplezproxy.lum-superproxy.io:22225.
  • Under ‘page.authenticate’ input your Luminati account ID and proxy zone name in the 'username' value, for example:lum-customer-CUSTOMER-zone-YOURZONE and your zone password found in the zone settings.
  • For example:

const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ headless: false, args: ['--proxy-server=zproxy.lum-superproxy.io:22225'] }); const page = await browser.newPage(); await page.authenticate({ username: 'lum-customer-USERNAME-zone-YOURZONE', password: 'PASSWORD' }); await page.goto('http://lumtest.com/myip.json'); await page.screenshot({path: 'example.png'}); await browser.close(); })();

Luminati Proxy Manager and Puppeteer Integration

  • Create a zone with the network, IP type and number of IPs you wish to use.
  • Install the Luminati Proxy Manager.
  • Click ‘add new proxy’ and choose the zone and settings you require, click ‘save’.
  • In Puppeteer under the 'proxy-server' input your local IP and proxy manager port (i.e. 127.0.0.1:24000)
    • The local host IP is 127.0.0.1
    • The port created in the Luminati Proxy Manager is 24XXX, for example 24000
  • Leave the username and password values empty, as the Luminati Proxy Manager has already been authenticated with the Super Proxy.
  • For example:
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(); })();


Latest videos

8:30
1:36