Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 743 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 743 Bytes

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