mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 11:52:18 +00:00
19 lines
608 B
Python
19 lines
608 B
Python
|
import asyncio
|
||
|
|
||
|
from enkanetwork import EnkaNetworkAPI, Config
|
||
|
|
||
|
client = EnkaNetworkAPI(lang="th")
|
||
|
|
||
|
async def main():
|
||
|
data = await client.fetch_user(843715177)
|
||
|
for character in data.characters:
|
||
|
print(f"=== Constellations of {character.name} ===")
|
||
|
for constellation in character.constellations:
|
||
|
print(f"ID: {constellation.id}")
|
||
|
print(f"Name: {constellation.name}")
|
||
|
print(f"Icon: {constellation.icon}")
|
||
|
print(f"Unlocked: {constellation.unlocked}")
|
||
|
print("="*18)
|
||
|
|
||
|
loop = asyncio.get_event_loop()
|
||
|
loop.run_until_complete(main())
|