mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-09-28 11:27:43 +00:00
3ec03d9b06
- add http client - update example - add aenter, aexit for auto close client
13 lines
300 B
Python
13 lines
300 B
Python
import asyncio
|
|
|
|
from enkanetwork import EnkaNetworkAPI
|
|
|
|
client = EnkaNetworkAPI(lang="th", debug=True)
|
|
|
|
async def main():
|
|
async with client:
|
|
await client.fetch_user(843715177)
|
|
# You can see the debug log in console.
|
|
|
|
loop = asyncio.get_event_loop()
|
|
loop.run_until_complete(main()) |