DavidPlnmr / LeagueOfLegends-Players-Rating

This project aims to get Leaguepedia free data with the help of their API. The goal is to possibly then use this to simplify the collect of data for any analysis. My goal was to make a rating of players in the tournament they played

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leaguepedia Stats Rating

This is a project to rate the players of League of Legends from the stats of the tournaments. It is mainly inspired by the work of Xenesis.

Data

The data is taken from the Leaguepedia website, more specifically from this link

Leaguepedia Client

The leaguepedia client is my own client that I used to simplify the requests to the Leaguepedia API. It is not a complete client, it only has the requests that I needed for this project. But you can easily make the more common requests using it. Feel free to add more requests to it.

Stats Parser

The stats parser is a parser that I made to parse the stats from the tournaments. It will take care of the version of the stats. Also it adds few stats like the roles of the players and the champions.

Stats Rating

The stats rating are made in the notebook stats_rating.ipynb. It is a notebook that I used to make the rating of the players. My goal is to document it and make it more readable.

Installation

Firstly, make a virtual environment and activate it.

python3 -m venv venv
source venv/bin/activate

Then install the requirements.

pip install -r requirements.txt

Usage

You can use the 'fetching_multiple_tournaments.py' script to fetch the stats of multiple tournaments.

python fetching_multiple_tournaments.py

Otherwise, you can use the 'fetching_tournament.py' script to fetch the stats of a single tournament. Don't forget to follow the instructions in the script.

python fetching_tournament.py

Note : LPL and LJL games stats can't be fetched because they are played in a special server.

TODO List

With no order of priority:

  • Make an analysis of the stats from the tournaments and make a rating of the players
  • Visualize the stats of the players in a web page
  • Probably store the stats in a database

About

This project aims to get Leaguepedia free data with the help of their API. The goal is to possibly then use this to simplify the collect of data for any analysis. My goal was to make a rating of players in the tournament they played


Languages

Language:Jupyter Notebook 94.7%Language:Python 5.3%