Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
tritoch 10aed51df3 Merge pull request #102 from leematos/lm-remove-urllib
Remove urllib requirement and replace with requests
2017-07-06 09:37:13 -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 Travis: run on ubuntu trusty container-based images (#101) 2017-07-06 09:26:33 -05:00
cards_corrections not only fix type, but also types 2017-07-03 01:31:13 +02:00
cards_delete Update cards_delete 2017-06-30 11:40:41 -05:00
cards_manual Nicol Bolas, the Deceiver Loyalty 2017-06-28 20:15: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 First pass refactoring scrapers into separate modules (#98) 2017-07-05 20:44:45 -05:00
mtgs_scraper.py First pass refactoring scrapers into separate modules (#98) 2017-07-05 20:44:45 -05:00
mythic_scraper.py First pass refactoring scrapers into separate modules (#98) 2017-07-05 20:44:45 -05:00
README.md readme: add output file explanations (#62) [skip ci] 2017-06-27 23:45:27 -05:00
requirements.txt Travis: run on ubuntu trusty container-based images (#101) 2017-07-06 09:26:33 -05:00
scryfall_scraper.py First pass refactoring scrapers into separate modules (#98) 2017-07-05 20:44:45 -05:00
set_info Full Spoil preparations 2017-06-27 12:07:02 -05:00
spoilers.py Remove urllib requirement and replace with requests 2017-07-05 22:43:19 -04:00
verify_files.py Pre flight (#64) 2017-06-27 13:03:35 -05:00
wizards_scraper.py First pass refactoring scrapers into separate modules (#98) 2017-07-05 20:44:45 -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.json)


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