Coders Packet

Web scraping using JavaScript

By SARTHAK SAHLOT

Build a web scraper project that scrapes details of BatsMan of each team that played in a world cup using JavaScript,fs module and xlsx module.

programing language: JavaScript,modules used: nodejs fs module,nodejs xlsx module,request package.

Build a web scraper that scrapes details of BatsMan of each team that played in a world cup.The request package was used to make parallel requests to the server and cheerio is used to extract data out of it.Nodejs fs module was used to create directories of each team and xlsx module is used to create excel file for each Player.Website of cricinfo was used to scrape the data of worldcup 2015.Each file of a batsman has the following information stored-

runs,balls faced,four,sixes,strike rate,match result and match venue.This information is stored for each match that he has played.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Download Complete Code

Comments

No comments yet