These scripts are used to pull information from classic.warcraftlogs.com via the Warcraft Logs v1 API.
- Warcraft logs v1 API key - make sure to name your key
- Python
- pip: Windows users see this article
git clone
the repo- [Optional] Visual Studio Code
- Rename
secrets.py.example
tosecrets.py
and fill in the relevant info
-
Create a Project at https://console.developers.google.com/cloud-resource-manager
-
Add the Google Sheets API
-
Add the Google Drive API
-
Add a Service Account
-
Create a key for the Service Account (JSON)
-
Put the JSON file in the project directory
-
Add the JSON file name to .gitignore
-
Add the name of the JSON file to
secrets.py
-
Create a Google spreadsheet
-
Share the Google spreadsheet with the
client_email
listed in the JSON file -
Run these commands:
pip install --upgrade google-api-python-client oauth2client
pip install gspread
- Set up sheet tabs with names based on the reports you are running
BEFORE running any reports, update the c_date
in secrets.py
.
Run ALL the scripts using python run.py
or run individual scripts:
python buffs.py
: Buffspython caster.py
: Casterpython damage.py
: Damagepython deaths.py
: Deathspython druid.py
: Druidspython eng.py
: Engineering damagepython mage.py
: Magespython paladin.py
: Paladinspython priest.py
: Priestspython rogue.py
: Roguespython warlock.py
: Warlockspython warrior.py
: Warriors
These instructions are specific to my Google spreadsheet.
players
: Remove data from columns A to Cpython main.py
: Get a list of players from recent reportsplayer-export
: Export the guild roster from the gameplayers
: Copy new players from column B to F, Filter out people not in the guildcurrent-players
: Update current players with the teams spreadsheetplayers
: Update missing player specssecrets.py
: Update healers arrayadd_parse
: Clear sheetpython parses.py
: Run the parse scriptparses
: Add new data fromadd_parse
players
: Filter / highlight based on the Parse sheet columnParses over
: Paste Player column fromplayers
, drag formulas, sort, increase date field, remove people with zero parse