Magic-Spoiler is a Python script to scrape MTG Salvation, Scryfall, MythicSpoiler and Wizards to compile
XML files (Cockatrice formatted) and application-ready json files (mtgjson formatted) with information about spoiled cards from upcoming sets.
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.
Noticed an error? Check out our Contributing file for information on how to help!
- Python 2.7
- several Python Modules (see requirements.txt)
pip install -r requirements.txt
$> 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.json)
Add the desired .xml file to your customsets folder to make Cockatrice use it.