Go to file
2022-07-17 13:08:31 +07:00
enkanetwork Change folder "json" to "assets" and add reload_assets function 2022-07-17 13:08:16 +07:00
example Add character.max_level 2022-07-17 13:08: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
MANIFEST.in Change "json" to "assets" 2022-07-17 13:05:20 +07:00
README_TH.md Change new endpoint 2022-07-15 23:43:08 +07:00
README.md update README.md 2022-07-17 02:33:34 +07:00
requirements.txt Fix setup.py 2022-06-26 21:07:17 +07:00
setup.py 1.2.4 --> 1.2.5 2022-07-17 13:06:35 +07:00

Enka Network Python

EN | TH

Library for fetching JSON data from site https://enka.network/

💾 Installation

pip install enkanetwork.py

Usage

import asyncio

from enkanetwork import EnkaNetworkAPI

client = EnkaNetworkAPI()

async def main():
    data = await client.fetch_user(843715177)
    print("=== Player Info ===")
    print(f"Nickname: {data.player.nickname}")
    print(f"Level: {data.player.level}")
    print(f"Icon: {data.player.icon.url}")
    print(f"Signature: {data.player.signature}")
    print(f"Achievement: {data.player.achievement}")
    print(f"Abyss floor: {data.player.abyss_floor} - {data.player.abyss_room}")
    print(f"Cache timeout: {data.ttl}")

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
=== Player Info ===
Nickname: mrwan2546
Level: 55
Icon: https://enka.network/ui/UI_AvatarIcon_Kazuha.png
Signature: K A Z U H A M U C H <3
Achievement: 396
Abyss floor: 8 - 3
Cache timeout: 300

If you want full docs for the API, visit EnkaNetwork API Docs

🌎 Languages Supported

Languege Code
English en
русский ru
Tiếng Việt vi
ไทย th
português pt
한국어 kr
日本語 jp
中文 zh
Indonesian id
français fr
español es
deutsch de
Taiwan cht
Chinese chs

👀 Example

Please see in example folder.

📄 LICENSE

MIT License

Keqing

Picture by KKOMDASTRO