tooomm 8deb35f745 add <info> key (#251)
* add <info> key

* cleanup doubled

* add schemaLocation attribute

* updated date output

* space

* updated version output

* bump to v4

* escape quotes

* fix schema version

* fix

* move comment to match token

* escape

* Revert "escape"

This reverts commit 18df8eda30.

* Revert "move comment to match token"

This reverts commit f1ce0cb850.

* correct direct file link

Co-authored-by: ebbit1q <ebbit1q@gmail.com>

* Update magic_spoiler/__main__.py

* Update magic_spoiler/__main__.py

Co-authored-by: ebbit1q <ebbit1q@gmail.com>
2022-02-07 00:38:31 +01:00
2022-02-07 00:38:31 +01:00
2021-05-27 23:22:36 +02:00
2019-04-02 12:58:31 -04:00
2017-05-28 14:38:52 -04:00
2019-04-02 12:58:31 -04:00
2021-07-24 11:34:04 +02:00
2019-04-02 12:58:31 -04:00
2019-04-01 16:16:59 -04:00
2019-04-02 12:58:31 -04:00
2019-04-02 12:58:31 -04:00


Magic-Spoiler Discord Gitter Chat

Magic-Spoiler is a Python script to query the Scryfall API to compile XML files (Cockatrice formatted) and application-ready JSON files (MTGJSON formatted) with information about spoiled cards from upcoming sets.

Output Build Status

Enable "Download Spoilers Automatically" in Cockatrice → Settings → Card Sources → Spoilers to get updates automatically pushed to your client!
You can also add the desired .xml file(s) to your customsets folder manually to make Cockatrice use it.

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

When run by our CI, the script automatically updates the files and uploads new versions to this branch. (History of changes)
GitHub Actions are scheduled to autoamtically run on a daily basis.

Contributing

Noticed an error in the card data? Check out our Contributing file for information on how to help fixing it!

We do happily accept PR's that improve our script as well!

Running

Requirements

pip install -r requirements.txt

Usage

$> python -m magic_spoiler

Output

All XML and JSON spoiler files are written to the out/ directory:

File Name Content
spoiler.xml, spoiler.json files contain all currently available spoilers from different sets
{SET_CODE}.xml, {SET_CODE}.json files contain just the spoiler available for this single set
Description
Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards
Readme GPL-3.0 91 MiB
Languages
Python 100%