Giter Club home page Giter Club logo

kickbase-analysis's Introduction

For educational and non-profit uses only. All trademarks, logos and brand names are the property of their respective owners.

kickbase-analysis

This repository contains some python code for retrieving data from the kickbase API and also a react web app for visualization.

Deployment with GitHub Pages

The data collection and building of the web app is automated by cron jobs and runs daily. The results are published to this GitHub Pages website https://roman-la.github.io/kickbase-analysis/. If you are interested in how I set it up, check out this guide https://github.com/gitname/react-gh-pages.

Run locally

If you are interested in running the code for your own league locally, follow this small guide.

Assuming you have Python (3.10) already setup, run the following commands to setup the environment and run the code for data collection:

cd data/
pip install pipenv
pipenv install
pipenv run main.py --kbuser [email protected] --kbpw yourpassword123 --league="Your League Name" --ignore ManagerX ManagerY

Giving the name of your league is optional. If not set, your first league (probably the one you are part of the longest time) will be used. Also optional is the --ignore parameter. With that you can specify one or more manager names to be ignored for data collection (e.g. for inactive or bot acocunts).

The resulting .json files need to be copied to the frontend folder:

cp data/*.json frontend/src/data

After that, assuming you have Node 18.x and npm setup, run the following commands to start the development server (reachable under http://localhost:3000/kickbase-analysis):

cd frontend/
npm install
npm start

Contact

Feel free to contact me on discord (r0man51) or open an issue if you have any questions.

kickbase-analysis's People

Contributors

github-actions[bot] avatar roman-la avatar

Stargazers

 avatar  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.