circle-check
Documentation has been updated: see help center and changelog in one place.

Puppeteer

Set up Puppeteer with Oxylabs Residential Proxies to control headless Chrome or Chromium via Node.js. Step-by-step guide with code examples.

Puppeteerarrow-up-right is a Node library that provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol.

To integrate Puppeteer with Oxylabs Residential Proxiesarrow-up-right, follow the steps below or watch this video tutorial:

Step 1. Install Node.js and a code editor of your choice. (Skip this step If you already have it)

Step 2. Create a Node.js project and install the required packages.

Step 3. Within Puppeteer, fill in the value, for example:

Proxy server: pr.oxylabs.io:7777

circle-info

You can also use random or sticky country-specific entries. For example, if you enter us-pr.oxylabs.io:10000, you’ll acquire a US exit node. If you enter 10001 under port, you’ll receive the US exit node with a sticky session. You can find a complete list of country-specific random proxy entry nodes herearrow-up-right and a list of sticky proxy entry nodes - herearrow-up-right.

Step 4. Under the 'page.authenticate', input your Oxylabs proxy username and password.

An example of a code looks like this:

And that's it! You've successfully integrated Oxylabs Residential Proxiesarrow-up-right with Puppeteer.

If you want to learn more about web scraping with Puppeteer, read our blog postarrow-up-right.

Find the original Puppeteer integration blog post herearrow-up-right.

Last updated

Was this helpful?