- First download the
server.js
and package.json` - Make sure you have NodeJs and npm installed on your machine * NodeJS
- Move
server.js
andpackage.json
toC:\Users\<your user>\Documents\webscraper
- Open a
cmd
and type
npm install
- Once that has finished installing all the required packages, type
node server.js
- That will start up the express server and you are almost ready to start scraping
- Then in a browser navigate to
http://localhost:8081/scrape?choice=NFL&roster=false&logo=false&schedule=false
- NFL
- MLB
- NBA
- NCAA_FOOTBALL
- NCAA_BASKETBALL
- True or False
- True or False
- True or false
Once it has finished scraping you will see the results in the browser, so back to the cmd
and type
ctrl + c
to end the program
You will see in the C:\Users\<your user>\Documents\webscraper
that all the data is in there