From 0dab4b17d86709f679d03ab524d1000999412eac Mon Sep 17 00:00:00 2001 From: Date: Thu, 1 Mar 2018 12:41:17 -0500 Subject: [PATCH] Created a script that gets all editions a card has been printed in. --- examples/card_editions.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/card_editions.py diff --git a/examples/card_editions.py b/examples/card_editions.py new file mode 100644 index 0000000..030aeea --- /dev/null +++ b/examples/card_editions.py @@ -0,0 +1,8 @@ +import scrython + +query = input("What editions of a card are you looking for? ") + +data = scrython.cards.Search(q="++{}".format(query)) + +for card in data.data(): + print(card['set'].upper(), ":", card['set_name'])