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.)
- Python 3
- Matplotlib
- A Lichess Personal Access Token
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
Take this team as an example:
The team id can be copied from the url, then we can use that in the program.
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
Finally, the program will plot a histogram showing:
- all ratings,
- titled players,
- GM, CM, NM, IM and FM ratings.