Smartproxy / Puppeteer

Puppeteer proxy authentication example for Smartproxy

Home Page:https://smartproxy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ  Main Repository ๐Ÿ 

Disclaimer

The following example is a simple script showing how to utilize Smartproxy with Puppeteer.js. We suggest researching Puppeteer.js documentation in order to continue development with this tool.

Prerequisites

To run our example script, you are going to need a few libraries as well as Node.js.

Installation

  1. Once you have your project directory ready for development with Puppeteer.js, open it using Terminal/Command prompt utilising cd command.
  2. After that, execute the following command to download our proxy setup example file:

curl https://raw.githubusercontent.com/Smartproxy/Puppeteer/master/puppeteer.js > puppeteer.js

curl smartproxy puppeteer code sample

  1. You should see a new file named puppeteer.js in your project folder. Edit it using an editor of your choice.

  2. To setup your username, password and endpoint you would like to use, change the according lines within punctuation marks ('').

smartproxy puppeteer http proxy configuration using username password authentication

Usage

To run this example script, while in your project folder, run the following command:

node puppeteer.js

If you did everything correctly, you should see an IP appearing from our proxy server once the script finishes running.

Need help?

Email - sales@smartproxy.com
Live chat 24/7

About

Puppeteer proxy authentication example for Smartproxy

https://smartproxy.com

License:MIT License


Languages

Language:JavaScript 100.0%