/scotch-scraping-node

Simple app for scraping author profiles and tutorials from Scotch.io - https://scotch.io.

Primary LanguageJavaScript

scotch-scraping-node

You can checkout the complete tutorial on Scotch: Web Scraping Scotch: The Node Way.

Simple app for scraping author profiles from Scotch.io. To get started, follow the following steps:

  1. Install dependencies

The app source code contains a lot of modern JavaScript syntax and uses the following engine versions: node 8.9.4 and npm 5.6.0. You should consider using recent versions of node and npm to run this app successfully.

npm install
  1. Start the server
npm start
  1. Load author profile

Visit your browser or any other HTTP tool of choice (e.g Postman) and make a GET request to the endpoint /scotch/{author} to fetch the profile of the author as a JSON response.

To fetch my Scotch profile for example, use the author name gladchinda as shown in the following cURL command.

curl -X GET http://localhost:3000/scotch/gladchinda

Happy Scraping!!!
Remember to hit the Star button to star this repository.