mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 11:52:18 +00:00
enkanetwork | ||
example | ||
.gitignore | ||
LICENSE | ||
README.md | ||
requirements.txt | ||
setup.py |
Enka Network Python
Library for fetching JSON data from site https://enka.shinshin.moe/
Installation
pip install enkanetwork.py
Usage
import asyncio
from enkanetwork import EnkaNetworkAPI
client = EnkaNetworkAPI()
async def main():
data = await client.fetch_user(843715177)
print(f"Nickname: {data.player.nickname}")
print(f"Level: {data.player.level}")
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Nickname: mrwan2546
Level: 55
Cache timeout: 236
If you want full docs for the API, visit EnkaNetwork API