Frontmatter updates and new custom deck
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
import json, urllib.request
|
||||
|
||||
HEADERS = {"Content-Type": "application/json", "User-Agent": "Mozilla/5.0"}
|
||||
|
||||
# Search for Scoot Sparkles base form
|
||||
b = json.dumps({"search": "Scoot"}).encode()
|
||||
r = urllib.request.Request(
|
||||
"https://runeterra.ar/api/cards/get/en_us?game=chrono",
|
||||
data=b,
|
||||
headers=HEADERS,
|
||||
)
|
||||
d = json.loads(urllib.request.urlopen(r, timeout=10).read())
|
||||
for c in d["cards"]:
|
||||
print(f"Card: '{c['name']}'")
|
||||
for ac in c.get("associatedCards", []):
|
||||
print(f" Assoc: name='{ac['name']}', rarity={ac['rarity']}, artist={ac['artistName']}")
|
||||
|
||||
print()
|
||||
|
||||
# Search for Ripper
|
||||
b2 = json.dumps({"search": "Ripper"}).encode()
|
||||
r2 = urllib.request.Request(
|
||||
"https://runeterra.ar/api/cards/get/en_us?game=chrono",
|
||||
data=b2,
|
||||
headers=HEADERS,
|
||||
)
|
||||
d2 = json.loads(urllib.request.urlopen(r2, timeout=10).read())
|
||||
for c in d2["cards"]:
|
||||
print(f"Card: '{c['name']}'")
|
||||
for ac in c.get("associatedCards", []):
|
||||
print(f" Assoc: name='{ac['name']}', rarity={ac['rarity']}, artist={ac['artistName']}")
|
||||
|
||||
print()
|
||||
|
||||
# Search for Violent/Violet
|
||||
b3 = json.dumps({"search": "Inquisitioner"}).encode()
|
||||
r3 = urllib.request.Request(
|
||||
"https://runeterra.ar/api/cards/get/en_us?game=chrono",
|
||||
data=b3,
|
||||
headers=HEADERS,
|
||||
)
|
||||
d3 = json.loads(urllib.request.urlopen(r3, timeout=10).read())
|
||||
for c in d3["cards"]:
|
||||
print(f"Card: '{c['name']}'")
|
||||
for ac in c.get("associatedCards", []):
|
||||
print(f" Assoc: name='{ac['name']}', rarity={ac['rarity']}, artist={ac['artistName']}")
|
||||
Reference in New Issue
Block a user