Skip to main content
Puppeteer is a Node.js library that provides a high-level API to control Chrome or Chromium browsers. It’s commonly used for web scraping, automated testing, and generating screenshots or PDFs of web pages. By integrating Nimble’s proxy network with Puppeteer, you can route your automated browser requests through residential IPs, enabling access to geo-restricted content and avoiding IP-based blocking.

Prerequisites

  • Node.js installed on your system
  • Nimble account with proxy credentials

Follow these steps to integrate Nimble

1

Install dependencies

Install Puppeteer and the proxy-chain package, which handles proxy authentication:
2

Get your proxy credentials

  • In the Nimble User Dashboard, navigate to the Pipelines page and click “add pipeline” to get your pipeline’s proxy connection details.
  • In your new pipeline, you will find the IP address, port, username, and password.
  • Your proxy URL format will be: http://username:[email protected]:7000
3

Implement the proxy connection

Use the following code to connect Puppeteer through Nimble’s proxy:
The proxy-chain package is required because Puppeteer doesn’t natively support proxy authentication. It creates a local proxy server that handles the authentication for you.

Configuration options

ParameterValueDescription
Hostip.nimbleway.comNimble proxy endpoint
Port7000Default proxy port
UsernameYour pipeline usernameFrom your Nimble dashboard
PasswordYour pipeline passwordFrom your Nimble dashboard

Geo-targeting example

To route requests through a specific country, append the country code to your username:

Verify your connection

You can verify your proxy connection by checking your IP address:
That’s all! Puppeteer will now route all requests through Nimble’s proxy network.