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:
- Install dependencies
The app source code contains a lot of modern JavaScript syntax and uses the following engine versions: node
8.9.4and npm5.6.0. You should consider using recent versions ofnodeandnpmto run this app successfully.
npm install- Start the server
npm start- Load author profile
Visit your browser or any other HTTP tool of choice (e.g Postman) and make a
GETrequest to the endpoint/scotch/{author}to fetch the profile of the author as aJSONresponse.
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/gladchindaHappy Scraping!!!
Remember to hit the Star button to star this repository.