Coder Social home page Coder Social logo

smartproxy / cheerio Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 16 KB

Cheerio.js proxy authentication example for Smartproxy

Home Page: https://smartproxy.com

License: MIT License

JavaScript 100.00%
cheerio cheeriojs cheerio-node cheerio-js crawling crawler data-crawling data-crawler smartproxy proxy

cheerio's Introduction

๐Ÿ  Main Repository ๐Ÿ 

Disclaimer

The following example is a simple script showing how to utilize Smartproxy with Cheerio.js. We suggest to research Cheerio.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 Cheerio.js, open it using Terminal/Command prompt utilizing cd command.
  2. After that, execute the following command to download our proxy setup example file:

curl https://raw.githubusercontent.com/Smartproxy/Cheerio/master/cheerio.js > cheerio.js

curl smartproxy cheerio code sample

  1. You should see a new file named cheerio.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 cheerio http proxy configuration

Usage

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

node cheerio.js

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

Contacts

Email - [email protected]
Live chat 24/7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.