Skip to content

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

License

Notifications You must be signed in to change notification settings

dev-id/Magic-Spoiler

 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.8%
  • Shell 3.2%