Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
2020-12-04 17:48:59 +01:00
.github step names 2020-12-04 17:48:59 +01:00
magic_spoiler remove deploy.sh use output instead of exit code 2020-12-03 23:41:19 +01:00
.gitignore remove deploy key 2020-12-02 20:24:18 +01:00
.pylintrc 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 last travis pieces 2020-12-03 21:43:52 +01: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 Discord 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 our CI, the script automatically updates the files and uploads new versions to this branch. (History of changes)
GitHub Actions are scheduled to autoamtically run on a daily basis.

Errors

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

Running

Requirements

pip install -r requirements.txt

Usage

$> python -m magic_spoiler

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

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


Enable "Download Spoilers Automatically" in Cockatrice → Settings → Card Sources → Spoilers to get updates automatically pushed to your client!
You can also add the desired .xml file(s) to your customsets folder manually to make Cockatrice use it.