mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 11:52:18 +00:00
fc4c09ae0b
remove PyPEP8 E501 example `asyncio.loop` to `asyncio.run` examples: pass all
19 lines
490 B
Python
19 lines
490 B
Python
import asyncio
|
|
|
|
from enkanetwork import Assets
|
|
|
|
assets = Assets(lang="th")
|
|
|
|
async def main():
|
|
namecard = assets.namecards(210059)
|
|
name = assets.get_hash_map(namecard.hash_id)
|
|
|
|
print("=== Asset character ===")
|
|
print(f"ID: {namecard.id}")
|
|
print(f"Name (Hash ID): {namecard.hash_id}")
|
|
print(f"Name (Hashed): {name}")
|
|
print(f"Icon: {namecard.icon}")
|
|
print(f"Banner URL: {namecard.banner}")
|
|
print(f"Navbar (Alpha) URL: {namecard.navbar}")
|
|
|
|
asyncio.run(main()) |