The following example is a simple script showing how to utilize Smartproxy with Nightmare.js. We suggest to research Nightmare.js documentation in order to continue development with this tool.
- Once you have your project directory ready for development with Nigtmare.js, open it using Terminal/Command prompt utilizing
cd
command. - After that, execute the following command to download our proxy setup example file:
curl https://raw.githubusercontent.com/Smartproxy/Nightmare/master/nightmare.js > nightmare.js
-
You should see a new file named nightmare.js in your project folder. Edit it using an editor of your choice.
-
To setup your username and password change the according fields within punctuation marks (''). You can also choose an endpoint that you would like to use by editing the
proxy-server:
parameter.
To run this example script, while in your project folder, run the following command:
node nightmare.js
If you did everything correctly, you should see an IP appearing from our proxy server once the script finishes running.
Email - [email protected]
Live chat 24/7