Fingolfin7 / Lichess-API-Rating-Distributions

Python project to show the rating distribution of a given Lichess team using the Lichess API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lichess API Rating Distributions

Python project to show the rating distribution of a given Lichess team using the Lichess API.

Simply enter the id of a team, as well as the game variant (i.e Classical, Rapid, Blitz, Bullet etc.)

Prerequisites

Getting the project

Download the project or clone it with git. You can also create a virtual environment. Install the requirements by running

pip install -r requirements.txt

You will need to create a personal-access-token.txt file in the source folder and paste a Lichess Personal Access Token inside it. You can generate a token here

Usage Example

Take this team as an example:

image

The team id can be copied from the url, then we can use that in the program.

image

The program will collect the rating information for every member in the team and print the following information to the console before drawing a histogram

image

Output

Finally, the program will plot a histogram showing:

  • all ratings,
  • titled players,
  • GM, CM, NM, IM and FM ratings.

image

About

Python project to show the rating distribution of a given Lichess team using the Lichess API

License:MIT License


Languages

Language:Python 100.0%