2022-07-05 06:38:08 +00:00
|
|
|
import asyncio
|
|
|
|
|
2022-07-05 08:47:27 +00:00
|
|
|
from enkanetwork import EnkaNetworkAPI
|
2022-07-05 06:38:08 +00:00
|
|
|
|
|
|
|
client = EnkaNetworkAPI(lang="th")
|
|
|
|
|
|
|
|
async def main():
|
2022-08-04 13:56:23 +00:00
|
|
|
async with client:
|
|
|
|
data = await client.fetch_user(843715177)
|
|
|
|
print("=== Characters ===")
|
|
|
|
for character in data.characters:
|
|
|
|
print(f"ID: {character.id}")
|
|
|
|
print(f"Name: {character.name}")
|
|
|
|
print(f"Level: {character.level} / {character.max_level}")
|
|
|
|
print(f"Rarity: {character.rarity}")
|
|
|
|
print(f"Element: {character.element}")
|
|
|
|
print(f"Friendship Level: {character.friendship_level}")
|
|
|
|
print(f"Ascension: {'⭐'*character.ascension}")
|
|
|
|
print(f"Constellations unlocked: C{character.constellations_unlocked}")
|
|
|
|
print(f"XP: {character.xp}")
|
2022-08-14 09:45:01 +00:00
|
|
|
print(f"Icon: {character.image.icon.url}")
|
|
|
|
print(f"Side icon: {character.image.side.url}")
|
|
|
|
print(f"Wish banner: {character.image.banner.url}")
|
|
|
|
print(f"Card icon: {character.image.card.url}")
|
2022-08-04 13:56:23 +00:00
|
|
|
print("="*18)
|
2022-07-05 06:38:08 +00:00
|
|
|
|
2022-08-17 04:54:16 +00:00
|
|
|
asyncio.run(main())
|