Skip to content
Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Branch: master
Clone or download
Latest commit 0f794b2 May 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ci More cleanups Apr 2, 2019
.github Update CONTRIBUTING.md Apr 4, 2019
magic_spoiler log wording (#235) May 18, 2019
.gitignore update gitignore Apr 3, 2019
.pylintrc More cleanups Apr 2, 2019
.travis.yml cleanup Apr 4, 2019
LICENSE Initial commit May 28, 2017
README.md tweaks Apr 13, 2019
mypy.ini More cleanups Apr 2, 2019
requirements.txt requirements Apr 1, 2019
requirements_test.txt More cleanups Apr 2, 2019
setup.py More cleanups Apr 2, 2019
tox.ini More cleanups Apr 2, 2019

README.md


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

You can’t perform that action at this time.