EnkaNetwork.py/example/skills.py
2022-07-17 13:08:59 +07:00

19 lines
537 B
Python

import asyncio
from enkanetwork import EnkaNetworkAPI
client = EnkaNetworkAPI(lang="th")
async def main():
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}")
print(f"Icon: {skill.icon}")
print(f"Level: {skill.level}")
print("="*18)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())