Skip to main content

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

MIT License

Keqing

Picture by KKOMDASTRO

Project details


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page