Browse Source

make_data

master
LeoTheHuman 7 years ago
parent
commit
c67f4349be
2 changed files with 6 additions and 1 deletions
  1. 5
    0
      make_data.sh
  2. 1
    1
      scripts/update_cards.py

+ 5
- 0
make_data.sh View File

#!/bin/sh
curl http://media.wizards.com/2018/downloads/MagicCompRules%2020181005.txt | iconv -f cp1251 -t utf8 > cr.txt
mkdir -p data
python3 scripts/update_cards.py
python3 scripts/update_cr.py

+ 1
- 1
scripts/update_cards.py View File



# Download and save for the future # Download and save for the future
cards = download() cards = download()
save('data/cards.json', cards)
#save('data/cards.json', cards)


languages = ['Russian'] languages = ['Russian']
ignore = [ ignore = [

Loading…
Cancel
Save