Created
March 22, 2024 16:45
-
-
Save Colack/ab27624d7bc4c47a3f15146ba5826eb0 to your computer and use it in GitHub Desktop.
Python Magic Code
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
# Make a pull request to api.scryfall.com | |
import requests | |
import json | |
import sys | |
def main(): | |
response = requests.get('https://api.scryfall.com/cards/named?fuzzy=shivan%20dragon') | |
print(response.json()['name']) | |
print(response.json()['mana_cost']) | |
print(response.json()['type_line']) | |
print(response.json()['oracle_text']) | |
print(response.json()['power']) | |
print(response.json()['toughness']) | |
print(response.json()['layout']) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment