/Magic-Spoiler

Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Magic-Spoiler Gitter Chat

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.

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? Check out our Contributing file for information on how to help!

Running

Requirements

pip install -r requirements.txt

Usage

$> python main.py

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

Errors are logged there as well (errors.json)


Add the desired .xml file to your customsets folder to make Cockatrice use it.