This is a web scraping project which scraps the cricinfo website to get information regarding Indian Premier League 2020/21. The following activities are carried out when we run this project-
- The ipl directory is created inside the current directory.
- Separate directories are created for each team inside the ipl directory
- Inside each team's directory, separate excel sheet is created for each player.
- Each row in the excel sheet represents different match played by the player and details like team name, opponent team name, player name, runs, balls, fours, sixes, sr, date of match, venue of match and the result of the match is shown.
- Clone this repository in your local environment.
- Run command
npm install
to install all the required packages. - Run command
node main.js
to get the required information.
- Cheerio module used here for web scraping.
- Disadvantage of cheerio module: it only parses and extracts initial loaded html.
- HTML seggregation is done using another file (table.html) to make information extraction easier.
- Multiple page scraping is done here.