Scrape stats of a particular player from ESPN Cricinfo and store them in an CSV file
-
To get the stats go to player profile url and copy the id, Example:
https://www.espncricinfo.com/india/content/player/398438.html
In the following url
398438
is the player id
-
git clone https://github.com/sandyjswl/cricinfo-stats-scraper.git
-
cd cricinfo-stats-scraper
-
pip install -r requirements.txt
-
python batting_history.py
-
python batting_summary.py
- To get the entire history for a particular format use command 4
- To get the carrer summary use command 5