Created
August 7, 2016 00:10
-
-
Save adback03/c04cbdb9c222076381bcde37575252b7 to your computer and use it in GitHub Desktop.
Print all standard legal cards in Battle for Zendikar and Shadows over Innistrad blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mtgsdk import Set | |
from mtgsdk import Card | |
sets = Set.where(block='Battle for Zendikar|Shadows over Innistrad').all() | |
set_codes = [] | |
for set in sets: | |
set_codes.append(set.code) | |
cards = Card.where(gameFormat='standard') \ | |
.where(set='|'.join(set_codes)) \ | |
.all() | |
for card in cards: | |
print(card.name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment