Go to file
2022-06-26 21:08:27 +07:00
enkanetwork Delete combats.py 2022-06-26 21:08:27 +07:00
example Init project 2022-06-22 13:14:31 +07:00
.gitignore Init project 2022-06-22 13:14:31 +07:00
LICENSE Init project 2022-06-22 13:14:31 +07:00
README.md Edit pip install 2022-06-22 13:18:36 +07:00
requirements.txt Fix setup.py 2022-06-26 21:07:17 +07:00
setup.py Fix setup.py 2022-06-26 21:07:17 +07:00

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

LICENSE

MIT License

Keqing

Picture by KKOMDASTRO