A program written in Python that uses the League of Legends API to download data from a player's recent matches and stores them locally for analysis in JSON format. Here is an example of a single match file: docs/match.json.
Install Git by following the instructions at https://git-scm.com/downloads.
From PowerShell on Windows or Terminal on macOS/Linux:
git clone https://github.com/evgenyneu/lolstats.git
Change directory to the root of the project:
cd lolstats
See Python setup.
Run python load.py
to download data for the most recent matches and save them to data
directory. For example:
python load.py --name=Faker --tag=t1 --region=americas --max=100 --key=your_api_key
Where:
--name
and--tag
are the League of Legends player's name and tag.--region
is one ofamericas
,asia
,europe
orsea
.--max
is the maximum number of recent matches to download.--key
is your Riot API key from https://developer.riotgames.com.
Run python load.py -h
to get the list of all available options.
See docs/development.md.
If you need help or notice a bug, feel free to create an issue ticket. I will be happy to help. :D
This code is released under the MIT License.