Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
dependabot[bot] 4392c34919
Some checks failed
Deploy / Check for new spoiler (push) Has been cancelled
Bump actions/upload-artifact from 6 to 7 (#319)
2026-03-13 06:17:11 +01:00
.github Bump actions/upload-artifact from 6 to 7 (#319) 2026-03-13 06:17:11 +01:00
magic_spoiler Add more info to parsing error message (#317) 2026-01-28 22:36:33 +01:00
.gitignore don't remove the ? from image urls 2022-02-09 18:29:28 +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 Update README.md 2025-12-12 12:46:38 +01:00
requirements_test.txt More cleanups 2019-04-02 12:58:31 -04:00
requirements.txt cleanup requirements (#299) 2023-05-31 10:06:16 +02:00
setup.py remove writing of json files (#295) 2023-03-25 14:34:46 +01:00
tox.ini More cleanups 2019-04-02 12:58:31 -04:00




Magic-Spoiler Discord

Magic-Spoiler is a Python script to query the Scryfall API to compile XML files (Cockatrice formatted) with information about spoiled cards from upcoming sets.

Output Build Status

Tip

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 them.

Just looking for XML 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 automatically run three times a day.

Contributing

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

We do happily accept PR's that improve our script as well!

Running

Requirements

pip install -r requirements.txt

Usage

$> python -m magic_spoiler

Output

All spoiler files are written to the out/ directory:

File Name Content
spoiler.xml file contains all currently available spoilers from different sets
{SET_CODE}.xml files contain just the spoiler available for this single set