Magic-Spoiler
Magic-Spoiler copied to clipboard
Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Magic-Spoiler

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 
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.
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 autoamtically run on a daily basis.
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
- Python 3.6
- several Python Modules (see requirements.txt)
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 |