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)
|
|
|
|
for character in data.characters:
|
|
|
|
print(f"=== Skill of {character.name} ===")
|
|
|
|
for skill in character.skills:
|
|
|
|
print(f"ID: {skill.id}")
|
|
|
|
print(f"Name: {skill.name}")
|
2022-08-14 09:45:01 +00:00
|
|
|
print(f"Icon: {skill.icon.url}")
|
2022-08-04 13:56:23 +00:00
|
|
|
print(f"Level: {skill.level}")
|
|
|
|
print("="*18)
|
2022-07-05 06:38:08 +00:00
|
|
|
|
2022-08-17 04:54:16 +00:00
|
|
|
asyncio.run(main())
|