Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
Zach Halpern 5c646eb10b Prevent cache URL content
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
2019-04-21 11:48:08 -04:00
.ci More cleanups 2019-04-02 12:58:31 -04:00
.github Update issue templates 2018-05-31 10:13:04 +02:00
magic_spoiler Prevent cache URL content 2019-04-21 11:48:08 -04:00
.gitignore update gitignore 2019-04-02 22:46:50 -04:00
.pylintrc More cleanups 2019-04-02 12:58:31 -04:00
.travis.yml More cleanups 2019-04-02 12:58:31 -04:00
LICENSE Initial commit 2017-05-28 14:38:52 -04:00
mypy.ini More cleanups 2019-04-02 12:58:31 -04:00
README.md scryfall only 2019-04-03 13:08:49 +02:00
requirements_test.txt More cleanups 2019-04-02 12:58:31 -04:00
requirements.txt requirements 2019-04-01 16:16:59 -04:00
setup.py More cleanups 2019-04-02 12:58:31 -04:00
tox.ini More cleanups 2019-04-02 12:58:31 -04:00

Magic-Spoiler Gitter Chat

Magic-Spoiler is a Python script to scrape Scryfall to compile XML files (Cockatrice formatted) and application-ready json files (mtgjson formatted) with information about spoiled cards from upcoming sets.

Output Build Status

Just looking for XML or JSON files? They are in our files branch!

When run by Travis, the script automatically updates the files and uploads new versions there. (History of changes)
Travis CI is run daily on a cron job basis.

Errors

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

Running

Requirements

pip install -r requirements.txt

Usage

$> python main.py

Outputs the following files to out/ directory:
spoiler.xml, {SETCODE}.xml, MPS_{SETCODE}.xml,
spoiler.json, {SETCODE}.json, MPS_{SETCODE}.json

spoiler → files contain all currently available spoilers from different sets
{SETCODE} → files contain just the spoiler available for this single set
MPS_{SETCODE} → files contain just the spoiler available for this Masterpiece Series

Errors are logged there as well (errors.yml)


Enable "Spoilers" in Cockatrice → Settings → Deck Editor to get updates automatically pushed to your client!
You can also add the desired .xml file to your customsets folder manually to make Cockatrice use it.