Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
tooomm 0b0c19ca06 folder for all Travis CI files and scripts (#117)
* add .travis folder

- gather all travis related files in one folder
- update location calls

* Move verify_files back out

* Update .travis.yml

* Move deploy_key to .travis folder
2017-07-11 14:30:14 +02:00
.github Migrate Repo 2017-05-30 09:23:36 -05:00
.travis folder for all Travis CI files and scripts (#117) 2017-07-11 14:30:14 +02:00
.gitignore Add spoiler.xml file, gitter settings, ignore out/ folder 2017-05-31 15:40:20 -05:00
.travis.yml folder for all Travis CI files and scripts (#117) 2017-07-11 14:30:14 +02:00
cards_corrections.yml Change input files to YAML (#99) 2017-07-06 14:25:10 -05:00
cards_delete.yml Remove cards from MTGS RSS that aren't in gallery (#112) 2017-07-07 16:32:02 -05:00
cards_manual.yml Change input files to YAML (#99) 2017-07-06 14:25:10 -05:00
LICENSE Initial commit 2017-05-28 14:38:52 -04:00
main.py Exit with failure on XSD invalid 2017-07-10 22:59:27 -05:00
mtgs_scraper.py Remove cards from MTGS RSS that aren't in gallery (#112) 2017-07-07 16:32:02 -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 Change input files to YAML (#99) 2017-07-06 14:25:10 -05:00
scryfall_scraper.py Refactor set_info, download_images to scraper sub 2017-07-06 19:46:26 -05:00
set_info.yml Refactor set_info, download_images to scraper sub 2017-07-06 19:46:26 -05:00
spoilers.py Merge pull request #109 from tritoch/replace-typeline-dash 2017-07-11 00:17:52 -04:00
verify_files.py folder for all Travis CI files and scripts (#117) 2017-07-11 14:30:14 +02:00
wizards_scraper.py Eliminate 'split_cards' array. Use 'names' key to determine split cards. (#111) 2017-07-07 16:27:50 -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.