mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-04-25 07:28:40 -05:00
* fix list markdown for requirements also fix unmatched bracket * List additional requirements
41 lines
1.4 KiB
Markdown
41 lines
1.4 KiB
Markdown
# Magic-Spoiler [](https://gitter.im/Cockatrice/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 [](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) ([History of changes](https://github.com/Cockatrice/Magic-Spoiler/commits/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!
|
|
|
|
## 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](https://github.com/Cockatrice/Magic-Spoiler/tree/files)
|