Skip to content

Instantly share code, notes, and snippets.

@Colack
Created March 22, 2024 16:45
Show Gist options
  • Save Colack/ab27624d7bc4c47a3f15146ba5826eb0 to your computer and use it in GitHub Desktop.
Save Colack/ab27624d7bc4c47a3f15146ba5826eb0 to your computer and use it in GitHub Desktop.
Python Magic Code
# 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