PySports: Python module to access cricket scores and more.
##PySports : Python module to access cricket scores and more.
PySports is a Reusable python app which provides a features to access live scores, upcoming matches, historical matches and more. PySports is rich features and powerful enough, You can start with PySports without installation of any 3rd party packages.
You can install PySports from PyPI using pip.
pip install pysports
In order to use PySports it required an API Key, You can generate the API Key from CricAPI.com.
Open your Text Editor/Python CLI and write the following code.
from pysports.cricapi import CricAPI cric = CricAPI("PASTE_YOUR_CRICAPI_API_KEY_HERE")
- Access Live Score of any matches by PySports.
To access live score of any matches it required the unique_id/match_id of the match.
- Access the list of Upcoming Matches by PySports.
To access the list of upcoming matches write the following code.
- Access the list of Historical Matches by PySports.
To access the list of Historical matches write the following code.
- Access the Scorecard/Summary of the matches by PySports.
To access the scorecard/summary of the matches it required the unique_id/match_id of the match, Write the following code.
- Access the Detail of Players by PySports.
To access the details/information of the players it required the pid/player_id of the players, Write the following code.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pysports-1.0.2-py3-none-any.whl (3.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size pysports-1.0.2.tar.gz (4.1 kB)||File type Source||Python version None||Upload date||Hashes View|