This tool is designed to pull data from a given player's matches, for later analysis. It also supports displaying numerous statistics in a graphical format. Data is saved to a .JSON file for future retrieval, allowing for caching of data to prevent excessive API calls.
fetch_rawData.py
retrieves the player's data.
data_analysis.py
calculates various statistics over a specified number of matches and displays them in a graphical format.
As of Sept. 2021, the match-v4 endpoint has been deprecated & Cass has a ton of bugs when handling v4 requests. Use this code at your own peril.
- Setup Python environment
- Use the
environment
file - Alternatively use pip to install dependencies (
pip install -r requirements.txt
)
- Use the
- Retrieve the player data
- Running
data_analysis.py
should automatically pull data for the specified player - If not, run
fetch_rawData.py
separately first
- Running
- Analyze the data
data_analysis.py
already does some preliminary analysis- Feel free to add whatever calculated statistics and methods you want here
- If you want to pull additional match statistics beyond what is already recorded, refer to Cassiopeia documentation to modify the
fetch_rawData.py
file.
- Using data in the future
- All of the requested player data is stored in a .JSON file with the format: "playerName_matchStats.json"
- Saving the data this way allows for caching and easy future use
Feel free to contact either of the authors through the information posted on their GitHub profile!
- Karl Roush: @karlroush
- Elijah Smith: @ElijahKSmith