Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
tooomm ef744d82ed readme update (#59) [skip ci]
* [ci skip] readme update

- outdated requirements are now always linked to up-to-date file
- added spoiler files to output list
- rephrases

* small tweak
2017-06-26 08:12:30 -05:00
.github Migrate Repo 2017-05-30 09:23:36 -05:00
.gitignore Add spoiler.xml file, gitter settings, ignore out/ folder 2017-05-31 15:40:20 -05:00
.travis.yml deploy from master branch only (#42) 2017-06-22 10:01:17 -05:00
cards_corrections Fix Uncage the Menagerie manaCost 2017-06-22 14:24:09 -05:00
cards_delete [ci skip] add comment, no delete from mps 2017-06-23 14:12:39 +02:00
cards_manual Improved Split Card Handling. Dump XML to log. 2017-06-19 15:20:48 -05:00
deploy_key.enc Travis Config 2017-05-30 13:46:41 -04:00
deploy.sh Update old branch value 2017-06-21 09:33:13 -05:00
LICENSE Initial commit 2017-05-28 14:38:52 -04:00
main.py Log Cleanup 2017-06-23 09:20:40 -05:00
README.md readme update (#59) [skip ci] 2017-06-26 08:12:30 -05:00
requirements.txt Allow comments in JSON files 2017-06-19 12:12:55 -05:00
set_info Scrape MTGS for images. Fix WOTC URL (#36) 2017-06-21 12:44:39 -05:00
spoilers.py WotC Image Gallery Regex Fix (#56) 2017-06-23 16:14:47 -05:00

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.