1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00
fftcgtool/main.py

27 lines
634 B
Python
Raw Normal View History

import requests
2021-08-02 23:55:12 +00:00
from fftcg.opus import Opus
2021-08-02 23:55:12 +00:00
def print_hi(name):
# supported params:
# [str] language, text,
# [array] type, element, cost, rarity, power, category_1, set
# [str] multicard="○"|"", ex_burst="○"|"", code, special="《S》"|""
# [int] exactmatch=0|1
params = {
"language": "de",
"text": "",
"element": ["fire"],
# "set": ["Opus XIV"],
}
2021-08-02 23:55:12 +00:00
opus_json = requests.post(url="https://fftcg.square-enix-games.com/de/get-cards", json=params).json()
2018-11-02 23:50:36 +00:00
2021-08-02 23:55:12 +00:00
opus = Opus(opus_json["cards"])
print(opus)
2021-08-02 23:55:12 +00:00
if __name__ == '__main__':
print_hi('PyCharm')