Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
2017-05-30 14:06:57 -05:00
.github Migrate Repo 2017-05-30 09:23:36 -05:00
.gitignore Migrate Repo 2017-05-30 09:23:36 -05:00
.travis.yml Update Deploy Token 2017-05-30 14:06:57 -05:00
cards_corrections.json Migrate Repo 2017-05-30 09:23:36 -05:00
cards_delete.json Migrate Repo 2017-05-30 09:23:36 -05:00
cards_manual.json Migrate Repo 2017-05-30 09:23:36 -05:00
deploy_key.enc Travis Config 2017-05-30 13:46:41 -04:00
deploy.sh Migrate Repo 2017-05-30 09:23:36 -05:00
LICENSE Initial commit 2017-05-28 14:38:52 -04:00
main.py Migrate Repo 2017-05-30 09:23:36 -05:00
README.md Migrate Repo 2017-05-30 09:23:36 -05:00
requirements.txt Migrate Repo 2017-05-30 09:23:36 -05:00
set_info.json Migrate Repo 2017-05-30 09:23:36 -05:00
spoilers.py Migrate Repo 2017-05-30 09:23:36 -05:00

SpoilerSeason

SpoilerSeason is a python script to scrape MTGS, Scryfall, and Wizards.com to compile a cockatrice-friendly XML file as well as json files.

Errors

Noticed an error? Check out our Contributing file for information on how to help!

Running

Requirements

  • Python 2.7
  • Python Modules: requests==2.13.0 feedparser lxml Pillow datetime
pip install -r requirements.txt

Usage

$> python main.py

Outputs out/{SETCODE}.xml, out/MPS_{SETCODE}.xml, out/{SETCODE}.json, out/{MPS_{SETCODE}.json

errors are logged to out/errors.json

Add the set xml file to your customsets folder for Cockatrice.

When run by travis, uploads all files to files branch