Skip to content

Macowen14/chess.comPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess.com Stats Viewer

A Python-based desktop application to fetch and display Chess.com player statistics, game history, and leaderboards using the Chess.com API.


Features

  • Player Profile: View a player's basic profile information.
  • Game History: Fetch and display recent games with details like date, players, result, time control, and more.
  • Leaderboards: Display current Chess.com leaderboards.
  • Filters: Filter games by wins, losses, or draws.
  • User-Friendly Interface: Built with Tkinter for a simple and intuitive GUI.

Prerequisites

Before running the application, ensure you have the following installed:

  1. Python 3.7 or higher: Download and install Python from python.org.
  2. Tkinter: Tkinter is included with Python by default. If it’s not installed, you can install it using your package manager:
    • Ubuntu/Debian: sudo apt-get install python3-tk
    • Windows: Tkinter is usually included with Python installations.
  3. Chess.com API Python Wrapper: Install the chessdotcom Python package to interact with the Chess.com API.

Installation

  1. Clone the Repository:
    git clone https://github.com/Macowen14/chess.comPython
  2. Set Up a Virtual Environment (Recommended):
    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install packages
    pip install chess.com
    pip install tkinter # on linux
  4. update your client header in app/utils/api_client.py:
    **def configure_client():
     """Configure Chess.com API client"""
     Client.request_config["headers"]["User-Agent"] = (
         "Chess Stats Viewer/1.0 (your-chess.com-email)"
     )**
    #Update your-chess.com-email with the corect email
    

5.Run main.py

   python main.py

About

geting chess.com stats and more via their api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages