mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-03-21 17:54:59 -05:00
Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
* fix list markdown for requirements also fix unmatched bracket * List additional requirements |
||
|---|---|---|
| .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 | ||
Magic-Spoiler 
Magic-Spoiler is a python script to scrape MTG Salvation, Scryfall, MythicSpoiler and Wizards to compile a XML file (Cockatrice formatted) and a general application ready json file (mtgjson formatted).
Output 
Just looking for XML or JSON files? They're in our files branch! (History of changes)
Errors
Noticed an error? Check out our Contributing file for information on how to help!
Running
Requirements
- Python 2.7
- Python Modules:
- requests==2.13.0
- feedparser
- lxml
- Pillow
- datetime
- commentjson
- beautifulsoup4
pip install -r requirements.txt
Usage
$> python main.py
Outputs out/{SETCODE}.xml, out/MPS_{SETCODE}.xml, out/{SETCODE}.json, out/MPS_{SETCODE}.json
errors are logged to out/errors.json
Add the set xml file to your customsets folder for Cockatrice.
When run by travis, uploads all files to files branch