Can be used to collect statistics on players who have registered for an OW2 tournament and save it in JSON
or xlsx
formats.
The entry repository is a Google SpreadSheet, from which a list of battletags players can be obtained.
So far, only the ability to collect data on the main player accounts has been implemented
- Create and activate venv
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e .
- At this stage you can test that all setup is fine by running something like
flake8
pre-commit install
and test it withpre-commit run --all-files
- Create API credentials by this guide
- Move your credentials file to
/user_configs
directory and rename it togspread_config.json
- Share your Google Sheet with bot account. Example
- Paste url of your sheet in
/user_configs/config.ini
insheet_url
- Specify other settings in
/user_configs/config.ini
if you need - Run
python get_players_data.py
To create commit use commitizen with cz commit
or cz c
commands.
Commit format:
TypeOfChange(filenameOrSpaceOfChanges): short descriptions of changes
Example of commit:
feat(users): added api endpoints for players profiles