Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
Zach Halpern 77744522b3 requirements
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
2019-04-01 16:16:59 -04:00
.ci Bandaid script again to allow travis to succeed 2018-12-30 03:07:00 -05:00
.github Update issue templates 2018-05-31 10:13:04 +02:00
.gitignore gitignore 2019-02-13 04:27:43 -05:00
.travis.yml travis 2018-12-25 15:01:32 -05:00
cards_corrections.yml remove rix (2/2) (#203) 2018-01-23 21:42:04 +01:00
cards_delete.yml remove old sets and better correction files (#133) 2017-08-26 06:23:03 +02:00
cards_manual.yml switch xln to scryfall as only source 2017-09-18 17:47:20 +02:00
LICENSE Initial commit 2017-05-28 14:38:52 -04:00
main.py Rebuild to use SF exclusively and publish 2019-04-01 16:12:43 -04:00
mtgs_scraper.py Python3 conversion and Update for MTGJSONv4 2018-12-21 16:08:26 -05:00
mythic_scraper.py First pass refactoring scrapers into separate modules (#98) 2017-07-05 20:44:45 -05:00
README.md switch to xml as data source 2018-05-30 19:55:06 +02:00
requirements.txt requirements 2019-04-01 16:16:59 -04:00
scryfall_scraper.py Python3 conversion and Update for MTGJSONv4 2018-12-21 16:08:26 -05:00
set_info.yml Update set_info.yml (#228) 2019-03-31 23:21:38 +02:00
spoilers.py Python3 conversion and Update for MTGJSONv4 2018-12-21 16:08:26 -05:00
verify_files.py Python3 conversion and Update for MTGJSONv4 2018-12-21 16:08:26 -05:00
wizards_scraper.py Python3 conversion and Update for MTGJSONv4 2018-12-21 16:08:26 -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

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


Enable "Spoilers" in Cockatrice → Settings → Deck Editor to get updates automatically pushed to your client!
You can also add the desired .xml file to your customsets folder manually to make Cockatrice use it.