{"id":19700320,"url":"https://github.com/cockatrice/magic-spoiler","last_synced_at":"2025-04-29T13:31:57.131Z","repository":{"id":38184793,"uuid":"92679848","full_name":"Cockatrice/Magic-Spoiler","owner":"Cockatrice","description":"Tools for generating Cockatrice-compatible cards.xmls for unreleased magic cards","archived":false,"fork":false,"pushed_at":"2024-10-29T08:16:21.000Z","size":60218,"stargazers_count":16,"open_issues_count":17,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T09:35:16.512Z","etag":null,"topics":["cockatrice","json-files","magic","spoiler","xml"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cockatrice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-28T18:38:51.000Z","updated_at":"2024-09-27T00:10:07.000Z","dependencies_parsed_at":"2024-01-17T17:58:43.796Z","dependency_job_id":"40ee033f-8c6b-4b71-9006-a1eff25f72ec","html_url":"https://github.com/Cockatrice/Magic-Spoiler","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cockatrice%2FMagic-Spoiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cockatrice%2FMagic-Spoiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cockatrice%2FMagic-Spoiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cockatrice%2FMagic-Spoiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cockatrice","download_url":"https://codeload.github.com/Cockatrice/Magic-Spoiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224175747,"owners_count":17268390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cockatrice","json-files","magic","spoiler","xml"],"created_at":"2024-11-11T21:05:29.451Z","updated_at":"2025-04-29T13:31:57.122Z","avatar_url":"https://github.com/Cockatrice.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/dynamic/xml?url=https%3A%2F%2Fraw.githubusercontent.com%2FCockatrice%2FMagic-Spoiler%2Ffiles%2Fspoiler.xml\u0026query=%2F%2Finfo%2FcreatedAt\u0026label=Last%20update)\n\n[![](https://img.shields.io/badge/dynamic/xml.svg?label=Included%20sets\u0026colorB=lightgrey\u0026url=https%3A%2F%2Fraw.githubusercontent.com%2FCockatrice%2FMagic-Spoiler%2Ffiles%2Fspoiler.xml\u0026query=count(%2F%2Flongname))](https://github.com/Cockatrice/Magic-Spoiler/tree/files) [![](https://img.shields.io/badge/dynamic/xml.svg?label=\u0026colorB=lightgrey\u0026url=https%3A%2F%2Fraw.githubusercontent.com%2FCockatrice%2FMagic-Spoiler%2Ffiles%2Fspoiler.xml\u0026query=%2F%2Flongname)](https://github.com/Cockatrice/Magic-Spoiler/blob/files/spoiler.xml)\u003cbr\u003e\n[![](https://img.shields.io/badge/dynamic/xml.svg?label=Release%20dates\u0026colorB=lightgrey\u0026url=https%3A%2F%2Fraw.githubusercontent.com%2FCockatrice%2FMagic-Spoiler%2Ffiles%2Fspoiler.xml\u0026query=%2F%2Freleasedate)](https://github.com/Cockatrice/Magic-Spoiler/blob/files/spoiler.xml)\u003cbr\u003e\n[![](https://img.shields.io/badge/dynamic/xml.svg?label=Included%20cards\u0026colorB=lightgrey\u0026url=https%3A%2F%2Fraw.githubusercontent.com%2FCockatrice%2FMagic-Spoiler%2Ffiles%2Fspoiler.xml\u0026query=count(%2F%2Fcard))](https://github.com/Cockatrice/Magic-Spoiler/blob/files/spoiler.xml)\n\n\u003cbr\u003e\n\n# Magic-Spoiler [![Discord](https://img.shields.io/discord/314987288398659595?label=Discord\u0026logo=discord\u0026logoColor=white)](https://discord.gg/3Z9yzmA) #\n\nMagic-Spoiler is a Python script to query the [Scryfall](https://scryfall.com) API to compile XML files (Cockatrice formatted) with information about spoiled cards from upcoming sets.\n\n## Output [![Build Status](https://github.com/Cockatrice/Magic-Spoiler/actions/workflows/deploy.yml/badge.svg?branch=master)](https://github.com/Cockatrice/Magic-Spoiler/actions/workflows/deploy.yml?query=branch%3Amaster) ##\n\n\u003e[!TIP]\n\u003e**Enable \"Download Spoilers Automatically\" in `Cockatrice → Settings → Card Sources → Spoilers` to get updates automatically pushed to your client!**\u003cbr\u003e\nYou can also [add the desired \u003cb\u003e.xml\u003c/b\u003e file(s) to your \u003ci\u003ecustomsets\u003c/i\u003e folder manually](https://github.com/Cockatrice/Cockatrice/wiki/Custom-Cards-\u0026-Sets#to-add-custom-sets-follow-these-steps) to make Cockatrice use them.\n\nJust looking for XML files?  [They are in our `files` branch!](https://github.com/Cockatrice/Magic-Spoiler/tree/files) \n\nWhen run by our CI, the script automatically updates the files and uploads new versions to this branch. ([History of changes](https://github.com/Cockatrice/Magic-Spoiler/commits/files))\u003cbr\u003e\nGitHub Actions are scheduled to autoamtically run on a daily basis.\n\n## Contributing ##\nNoticed an error in the card data? Check out our [Contributing file](https://github.com/Cockatrice/Magic-Spoiler/blob/master/.github/CONTRIBUTING.md) for information on how to help fixing it!\n\nWe do happily accept PR's that improve our script as well!\n\n## Running ##\n\n### Requirements ###\n * Python 3.6\n * several Python Modules (see [requirements.txt](https://github.com/Cockatrice/Magic-Spoiler/blob/master/requirements.txt))\n\n```\npip install -r requirements.txt\n```\n\n### Usage ###\n \n```\n$\u003e python -m magic_spoiler\n```\n\n### Output ###\n\nAll spoiler files are written to the `out/` directory:\n\n| File Name | Content |\n|:--|:--|\n| `spoiler.xml` | file contains **all** currently available spoilers from different **sets** |\n| `{SET_CODE}.xml` | files contain just the spoiler available for this **single set** |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcockatrice%2Fmagic-spoiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcockatrice%2Fmagic-spoiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcockatrice%2Fmagic-spoiler/lists"}