Giter Site home page Giter Site logo

jasnain-singh / pyfide Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 41 KB

PyFIDE is a Python tool designed to scrape data from the FIDE (Fédération Internationale des Échecs) chess website. It provides functionalities to gather information about players, their ratings, and gaming statistics from the FIDE database.

License: MIT License

Python 100.00%
chess webscraper python

pyfide's Introduction

PyFIDE: FIDE Chess Data Scraper

PyFIDE is a Python tool designed to scrape data from the FIDE (Fédération Internationale des Échecs) chess website. It provides functionalities to gather information about players, their ratings, and gaming statistics from the FIDE database.

Features

  • Player Data Extraction : Retrieve player information including name, country, Elo rating, and birth year.
  • FIDE ID Retrieval : Obtain FIDE IDs associated with players.
  • Rating History : Access historical ratings of players across different time periods.
  • Different Game Formats : Get ratings for classical, rapid, and blitz chess formats.

Installation

  1. Clone the repository:

    git clone https://github.com/jasnain-singh/PyFIDE.git
    
  2. Install the dependencies:

    pip install -r requirements.txt
    

Usage

  1. Import the FideInfo class from pyfide.py:

    from pyfide import FideInfo
    
  2. Instantiate the FideInfo class:

    fi = FideInfo()
    
  3. Utilize the available methods to scrape data:

    # Get top players
    top_players = fi.getTop(max=100)
    
    # Update top 100 players list
    updated_players_list = fi.updateTop100()
    
    #Get FIDE IDs for players
    fide_ids_df = fi.getFideIds()
    
    #Update FIDE IDs
    updated_fide_ids = fi.updateFideId()
    
    #Get FIDE ID for a specific player
    fide_id = fi.getFideId(name="Carlsen, Magnus") # Name needs to be matching their FIDE Profile name
    
    #Get all ratings for a player
    all_ratings = fi.getAllRatings(name="Carlsen, Magnus")
    
    #Get classical ratings for a player
    classical_ratings = fi.classical(name="Carlsen, Magnus")
    
    #Get rapid ratings for a player
    rapid_ratings = fi.rapid(name="Carlsen, Magnus")
    
    #Get blitz ratings for a player
    blitz_ratings = fi.blitz(name="Carlsen, Magnus")
    

Contributors

License

This project is licensed under the MIT License - see the LICENSE file for details.


Feel free to customize the sections and details according to your preferences and project specifics!

pyfide's People

Contributors

jasnain-singh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.