- Get an API key from https://developer.clashofclans.com/.
- Create a
.env
:
TOKEN=clash api key goes here
- Run
./fetch_current.sh
and it will fetch the current war intodata/
. This only works before a new war has been started.
- Run
make
. - Run
./run.sh [data json file]
. This will fetch the latest war data if you do not specify the path of said json file.
Optionally, nice formatting to steal can be found at https://frogg.ie/llama
- Add Sheet
- Ctrl + V
- Data → Split text to columns
- Format → Alternating Columns
- Select Column E
- Ctrl + H
- Find
~
, Replace with=
, Replace All - Select Columns A to P → Right Click → Resize column → Fit to data
- Select Columns D to E → Insert → Checkbox