Coomer/Kemono Api client
Project description
Coomer
This package is Api client for coomer/kemono.
Installing
pip install coomer
Installing async version
pip install coomer[aiohttp]
Getting started
Client
To get posts from the creator:
from coomer import Creator
creator = Creator(name="test")
posts = creator.get_posts()
for p in posts:
print(f"{p.id}\tfiles:{len(p.files)}\t{p.title}")
Changing domain
parser = Parser(domain='kemono.su')
creator = Creator(name="test", parser=parser)
Async Client
To get posts from the creator asynchronously:
import asyncio
from coomer.asyncio import AsyncCreator
async def test():
creator = Creator(name="test")
posts = creator.get_posts()
async for p in posts:
print(f"{p.id}\tfiles:{len(p.files)}\t{p.title}")
asyncio.run(test())
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
coomer-0.1.2.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coomer-0.1.2.tar.gz.
File metadata
- Download URL: coomer-0.1.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
626dbf4107e236266ac56caff8297812e182506c91642fbbfaea5e3efda0aa4e
|
|
| MD5 |
9a089aa48ab8606832b6d14d179c195c
|
|
| BLAKE2b-256 |
32f42640eb3f3ed049249f75e7078950e553548ed6d0eaf6d81d25779a84573e
|
File details
Details for the file coomer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: coomer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed20ae516ba78d5112dd0c216d7823665a176a74ef0621e34ad6da9449118367
|
|
| MD5 |
6d1c4ca61bfba0a16734d28e2eecb9ff
|
|
| BLAKE2b-256 |
b17788f9b0b4447fc9b55b096e2f398f0cf95bfc18bfae82efc20b696b382f85
|