NHentai API Wrapper for Python
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())
from NHentaidesu import DoujinClient
nh = DoujinClient()
res = nh.info(332957)
print(res)
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.
- Hybrid: Supported both 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.
- 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
- Python 3.6 or higher
- You can support this library by giving a star
- If you want to donate me you can contact me in Telegram.
Copyright (c) 2021 Kiizuha.