USING PYTHON

INSTALLATION

pip install nekosbest

USAGE

GET a Neko
GET multiple Nekos
1
import asyncio
2
from nekosbest import Client
3
4
client = Client()
5
6
async def get_single_image(category: str):
7
result = await client.get_image(category)
8
print(result)
9
10
loop = asyncio.get_event_loop()
11
loop.run_until_complete(get_single_image("nekos"))
Copied!
1
import asyncio
2
from nekosbest import Client
3
4
client = Client()
5
6
async def get_multiple_images(category: str, amount: int):
7
result = await client.get_image(category, amount)
8
print(result)
9
10
loop = asyncio.get_event_loop()
11
loop.run_until_complete(get_multiple_images("nekos", 5))
Copied!

CREDIT

Thanks to Predä for the Python API wrapper.
Last modified 12d ago
Copy link