mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
fc4c09ae0b
remove PyPEP8 E501 example `asyncio.loop` to `asyncio.run` examples: pass all
19 lines
556 B
Python
19 lines
556 B
Python
import asyncio
|
|
|
|
from enkanetwork import EnkaNetworkAPI
|
|
|
|
client = EnkaNetworkAPI(lang="th")
|
|
|
|
async def main():
|
|
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}")
|
|
print(f"Icon: {skill.icon.url}")
|
|
print(f"Level: {skill.level}")
|
|
print("="*18)
|
|
|
|
asyncio.run(main()) |