Skip to content

Scrape stats of a particular player from ESPN Cricinfo and store them in an Excel file

Notifications You must be signed in to change notification settings

sandyjswl/cricinfo-stats-scraper

Repository files navigation

ESPN Cricinfo stats scraper

Scrape stats of a particular player from ESPN Cricinfo and store them in an CSV file

Steps

  • 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

  1. git clone https://github.com/sandyjswl/cricinfo-stats-scraper.git
  2.  cd cricinfo-stats-scraper
  3.  pip install -r requirements.txt
  4.  python batting_history.py
  5. python batting_summary.py
  • To get the entire history for a particular format use command 4
  • To get the carrer summary use command 5

About

Scrape stats of a particular player from ESPN Cricinfo and store them in an Excel file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages