|
|
||
|---|---|---|
| .github | ||
| .gitignore | ||
| .travis.yml | ||
| cards_corrections | ||
| cards_delete | ||
| cards_manual | ||
| deploy_key.enc | ||
| deploy.sh | ||
| LICENSE | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
| set_info | ||
| spoilers.py | ||
| verify_files.py | ||
Magic-Spoiler 
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 
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
- Python 2.7
- several Python Modules (see requirements.txt)
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.