Skip to main content

ESPN Cricinfo Scraper

Project description

ESPN-Statsguru-Scraper

Introduction

An easy-to-use python scraper to pull all-time cricket statistics from ESPN Cricinfo.

Prerequisites

Python requirements

  • You need to install Python with version 3.4 or more. You can find the latest version of Python at https://www.python.org/downloads/

  • Install the library as follows.

pip install espncricket

How to run the code

import espncricket.ESPN as ESPN

df = ESPN().get_score()
print(df.head())

By default it returns Test batting statistics for men only.

But, you can also tweak following parameters to get custom results of your own choice.

  • match_type='ODI_Women'
  • data_type='bowling'
  • view_type="series"
  • number_of_pages=10

ESPN_object = ESPN(match_type='ODI_Women', data_type='bowling', view_type="series")
odi_batting_scores_for_women_per_series_with_10_pages_only = ESPN_object.get_score(number_of_pages)
  • After successful execution, a pandas dataframe object is returned.

License Information

Please refer "LICENSE" file to know the license details. Before reusing the code, please take a written permission from me. You can contact me at sanketpatole1994@outlook.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

espncricket-0.0.9.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

espncricket-0.0.9-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file espncricket-0.0.9.tar.gz.

File metadata

  • Download URL: espncricket-0.0.9.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for espncricket-0.0.9.tar.gz
Algorithm Hash digest
SHA256 4cd00c10408f9ccd4b5ce18ae7ab3a8703873f7b290ca8e7e9e2eaf858f13d9e
MD5 785620d444f400d45e77b5f8fbb28a6d
BLAKE2b-256 3a9b98c2d91c5f96e474b98cb69d4c18f1e12fdfd183f3720da555ce58422b8c

See more details on using hashes here.

File details

Details for the file espncricket-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: espncricket-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for espncricket-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f5832d2d4a622007027627cb4c1de3ed9a4bf36e92782611d3c02c5833375ee1
MD5 b4a4cee92e824fc4b919b34df06bd23f
BLAKE2b-256 51ea4ca6572ce3bda6be681fed9edb12cd32e76e01435b5338587409b6ceb1a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page