[go: up one dir, main page]

Skip to content

A Python program that loads data for League of Legends matches and stores them locally for analysis.

License

Notifications You must be signed in to change notification settings

evgenyneu/lolstats

Repository files navigation

League of Legends match data downloader

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.

Setup

Install Git

Install Git by following the instructions at https://git-scm.com/downloads.

Download the code

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

Set up Python environment

See Python setup.

Usage

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 of americas, asia, europe or sea.
  • --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.

Development

See docs/development.md.

Feedback is welcome

If you need help or notice a bug, feel free to create an issue ticket. I will be happy to help. :D

License

This code is released under the MIT License.

About

A Python program that loads data for League of Legends matches and stores them locally for analysis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages