mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-03-21 17:54:59 -05:00
Add spoiler.xml file, gitter settings, ignore out/ folder
This commit is contained in:
parent
fb5f7f585c
commit
c6e3293c3c
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
# Project specific
|
||||
out/
|
||||
AllSets.pre.json
|
||||
deploy_key.enc
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ notifications:
|
|||
email: false
|
||||
webhooks:
|
||||
urls:
|
||||
- https://webhooks.gitter.im/e/7540dd1e121a1430fb8f
|
||||
- https://webhooks.gitter.im/e/691b9acffe1def5f9d6b
|
||||
on_success: always # options: [always|never|change] default: always
|
||||
on_failure: always # options: [always|never|change] default: always
|
||||
on_start: never # options: [always|never|change] default: always
|
||||
on_start: always # options: [always|never|change] default: always
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
# SpoilerSeason #
|
||||
# Magic-Spoiler [](https://gitter.im/SpoilerSeason/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) #
|
||||
|
||||
SpoilerSeason is a python script to scrape MTGS, Scryfall, and Wizards.com to compile a cockatrice-friendly XML file as well as json files.
|
||||
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 [](https://travis-ci.org/Cockatrice/Magic-Spoiler) ##
|
||||
Just looking for XML or JSON files? [They're in our files branch!](https://github.com/Cockatrice/Magic-Spoiler/tree/files)
|
||||
|
||||
## Errors ##
|
||||
Noticed an error? Check out our [Contributing file](https://github.com/Cockatrice/Magic-Spoiler/blob/master/.github/CONTRIBUTING.md) for information on how to help!
|
||||
|
|
|
|||
|
|
@ -840,6 +840,9 @@ def write_xml(mtgjson, setname, setlongname, setreleasedate, split_cards=[]):
|
|||
|
||||
cardsxml.write("</cards>\n</cockatrice_carddatabase>")
|
||||
|
||||
if os.path.isfile('out/' + setname + '.xml'):
|
||||
shutil.copyfile('out/' + setname + '.xml','out/spoiler.xml')
|
||||
|
||||
#failing pretty xml code
|
||||
#with open('out/' + setname + '.xml') as data_file:
|
||||
# tree = etree.parse(data_file)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user