Skip to main content
Puppeteer is a Node.js library that provides a high-level API for controlling headless or full browsers like Google Chrome or Chromium. Puppeteer enables web automation, scraping, testing, and performance monitoring, so you can simulate user actions, extract data, and generate PDFs or screenshots. You can find out more about Puppeteer on the official Puppeteer page.

Check whether Node.js is installed

Before anything, check whether Node.js is installed. Open a terminal (Command Prompt or shell) and run:
If you get a version number, Node.js is already installed. The version number looks like this:
Terminal showing the installed Node.js version number
In that case, skip ahead to Step 2 and create a project directory. If Node.js is not installed on your system, you get this error instead:
If that is your case, continue with the steps below.

Step 1: Install Node.js

1

Download Node.js

Go to the Node.js official website and download the LTS version for your operating system.
Node.js download page with the LTS version highlighted
2

Install Node.js

Run the installer you downloaded and follow the installation wizard.
Node.js installation wizard

Step 2: Create a project directory

1

Create the directory

Open a terminal and create a directory for your project:
2

Go to the directory

3

Initialize the project

This command creates a package.json file in your project directory.
Terminal output from npm init showing the created package.json

Step 3: Install Puppeteer

Install Puppeteer with:
Terminal output from installing Puppeteer with npm

Step 4: Set up Puppeteer with a NodeMaven proxy

Create a new file called index.js in your project directory using your preferred text editor, then add the code for your authentication method.
For the whitelisted IP method, see IP whitelist.

Step 5: Run the script

Use the following command in the terminal:
If everything is set up correctly, the script logs the title of the page at https://nodemaven.com to the console.
Terminal showing the page title logged by the Puppeteer script
You are now ready to personalize your script and start using Puppeteer with NodeMaven proxies.