Puppeteer
What is Puppeteer?
Puppeteer is a JavaScript library which provides a high-level API to control Chrome or Firefox over the DevTools Protocol or WebDriver BiDi. Puppeteer runs in the headless (no visible UI) by default but can be configured to run in a visible ("headful") browser.

Here's how to integrate Thordata with Puppeteer.
1
Installing Puppeteer
You must create your Puppeteer project, initiate it, and then install Puppeteer with npm and Puppeteer.
Click here to view the detailed installation tutorial
Code Sample:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
headless: false,
args: ['--proxy-server=t.pr.thordata.net:9999]
});
const page = await browser.newPage();
await page.authenticate({
username: 'td-customer-USERNAME',
password: 'PASSWORD'
});
await page.goto('https://ipinfo.thordata.com');
await page.screenshot({path: 'example.png'});
await browser.close();
})();
Last updated
Was this helpful?