- Get https://wkhtmltopdf.org and have
wkhtmltoimage
in your systemPATH
env - Install python, conda etc
- Install dependencies (preferably after creating python env for this project)
pip install -r requirements.txt
- Make sure that
data/gwent/cards.json
is the newest one from https://gwent.one/api/cardlist
curl https://gwent.one/api/cardlist?key=w7eoMVT6xb4bKbi2V8rnxw --output data/gwent/cards.json
- Make sure that
data/export.csv
is the newest export from glossary plugin from wordpress
- Run
gwent_script.py
. It takes a while.
- Copy files from
result/gwent/images
to/public_html/wp-content/uploads/gwent_cards
on teamleviathangaming.com - Upload
result/gwent/gwent-import_X.csv
files in the glossary plugin settings in wordpress (they are limmited to 500 per csv so wordpress will not time out)
- Make sure that
data/lor/*.json
is the newest one from https://developer.riotgames.com/docs/lor#data-dragon_core-bundles - Make sure that
data/export.csv
is the newest export from glossary plugin from wordpress
- Run
lor_script.py
- Copy image files from the pack to
/home1/teamlev1/public_html/wp-content/uploads/lor_cards
on teamleviathangaming.com - Upload
result/lor/lor-import.csv
in the glossary plugin settings in wordpress