Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Go to file
2017-06-19 15:48:55 +01: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 Add spoiler.xml file, gitter settings, ignore out/ folder 2017-05-31 15:40:20 -05:00
cards_corrections.json Fixing 3 Mythicspoiler typos 2017-06-19 15:48:55 +01:00
cards_delete.json New Set "Hour of Devastation" (HOU) Prep 2017-06-01 10:39:13 -05:00
cards_manual.json Multiple Set Support 2017-06-16 09:55:45 -05:00
deploy_key.enc Travis Config 2017-05-30 13:46:41 -04:00
deploy.sh Travis Debug 2017-06-13 15:30:42 -05:00
LICENSE Initial commit 2017-05-28 14:38:52 -04:00
main.py Return of Split Cards. MPS set starting. Sanitize Scryfall. 2017-06-17 00:10:52 -05:00
README.md Travis Debug 2017-06-13 11:57:15 -05:00
requirements.txt Add mythicspoiler scraper 2017-06-16 15:32:45 -05:00
set_info.json Multiple Set Support 2017-06-16 09:55:45 -05:00
spoilers.py Remove html tag from card text 2017-06-18 22:07:59 -05:00

Magic-Spoiler Gitter Chat

Magic-Spoiler is a python script to scrape MTGS, Scryfall, and Wizards.com to compile a cockatrice-friendly XML file as well as json files.

Output Build Status

Just looking for XML or JSON files? They're in our files branch!

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
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