NHentai API Wrapper for Python
Usage for asynchronous
from NHentaidesu import DoujinClient
import asyncio
nh = DoujinClient()
async def main():
res = await nh.info(332957)
print(res)
asyncio.get_event_loop().run_until_complete(main())
Usage for synchronous
from NHentaidesu import DoujinClient
nh = DoujinClient()
res = nh.info(332957)
print(res)
Usage for login
from NHentaidesu import DoujinClient
nh = DoujinClient(csrf_token="YOUR_CSRF_TOKEN", session_id="YOUR_SESSION_ID", use_proxy=True)
# if you unable to download/render the image set use_proxy to True
# use_proxy is just using a Duckduckgo image URL.
Features
- Hybrid: Supported bot asynchronous and synchronous runtime.
- Download: You can download doujinshi and user avatar.
- Complete: This library is complete, but if you see any missing you can open issue.
- Typed-code: Function and object are typed.
Question
- Q: How do I get my csrf_token and session_id?
- A: You can get it from developer tools in your PC or laptop browser.
- Q: Why am I receiving
ImportError: failed to find libmagic. Check your installation? - A: You can solve it by installing libmagic. See stackoverflow
Requirements
- Python 3.6 or higher
Support
- You can support this library by giving a star
- If you want to donate me you can contact me in Telegram.
Copyright
Copyright (c) 2021 Kiizuha
Release files for NHentaidesu 1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| NHentaidesu-1.9.tar.gz | 10.9 kB | Details |
Release files / NHentaidesu-1.9.tar.gz
| Download URL | NHentaidesu-1.9.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88469ee6c5fb8fbd1fa3da3953c7a2a08261188db1611fdb9bcff945308598f0
|
|
BLAKE2b-256 checksum How to use checksums |
06a0f58fae15be959cabbdf921cc44fa5403aa23be8001d105c8b3b9cf45badd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|