Library for fetching JSON data from site https://enka.shinshin.moe/
Project description
Enka Network Python
Library for fetching JSON data from site https://enka.shinshin.moe/
Installation
pip install enkanetwork
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
LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
enkanetwork.py-1.0.0.tar.gz
(4.7 kB
view hashes)