Skip to content

petermodzelewski/tlg-card-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TLG card processor

Setup

  1. Get https://wkhtmltopdf.org and have wkhtmltoimage in your system PATH env
  2. Install python, conda etc
  3. Install dependencies (preferably after creating python env for this project)
pip install -r requirements.txt

Gwent

Preparation

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

Generating data

  • Run gwent_script.py. It takes a while.

Upload

  • 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)

LOR

Preparation

Generating data

  • Run lor_script.py

Upload

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published