♟︎ Update a pinned gist to contain your Chess.com Blitz, Bullet, Rapid, Puzzles & Daily Ratings
📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gist
scope and copy it. (https://github.com/settings/tokens/new) - Copy the
API token
- Fork this repo
- Go to your fork's
Settings
>Secrets
>Add a new secret
for each environment secret (below)
-
GH_TOKEN: The GitHub token generated above.
-
GIST_ID: The ID portion from your gist url:
https://gist.github.com/sciencepal/
ce5221fc5f3739d2c81ce7db99f17519
.(Alternatively this can be put directly in
.github/workflows/chesscom.yml
as it is public anyway.) -
CHESS_COM_USERNAME: Your chess.com username. (This can also be put directly in the yml)
# setup
pipenv install --dev
# testing
pipenv run python chess_com_box.py test <gist-id> <github-token> <user>
# example
# pipenv run python chess_com_box.py test ce5221fc5f3739d2c81ce7db99f17519 cf9181618bf1618253d17161843f71a2bb161850 sciencepal
This code was heavily inspired (with some code taken over) by @aksh1618's codestats-box-python.