This repository stores various Python scripts that can be used to make API requests to the Riot Games League of Legends API. This is part of an undergraduate thesis project focusing on predicting the outcome of ranked solo queue matches in the game League of Legends.
Live Demo (BETA):
Below is a brief summary of all Python scripts and what they are used for. More detail on each script is provided within the scripts folder.
- findLeagues.py - used to find a collection of player IDs in a given skill group (Gold, Platinum, Diamond etc.) that can then be used to request a history of matches for each player
- convertEpochTime.py - used within other scripts to convert from Epoch time to standard date format. This is important when trying to determine how many days ago a specific match was played
- singleMatchPull.py - takes a summoner ID as input and pulls various data points from the last match played by that summoner ID
- groupMatchPull.py - loops through roughly 2000 Diamond level players and pulls the data of their last match if it was played within the last 24 hours
- infiniteMatchPull.py - continuously tracks more than 20,000 Diamond level players and records their match information if they are currently playing in a ranked solo queue match. This script will result in the most accurate and up-to-date data.
- getMatchResult.py - the CSV file created by process_data.py is missing an entry for the Match Outcome data point because the match is still being played as the data is pulled. In order to fill in these missing entries, this script opens the CSV file and makes API requests to find the match outcome for each matchID.
- process_data.py - uses the CSV file created by infiniteMatchPull and reduces the attributes for each match down to ratios between the Blue and Red team averages.
- Alex Neumann
- September 2, 2015
- added output files for all scripts
- added python code for each script
- added descriptions for each script in the Scripts folder