Skip to main content

NHentai API wrapper with hybrid runtime.

Project description

Pyrogram
NHentai API Wrapper for Python
Down/Week Release LICENSE

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

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

NHentaidesu-1.9.tar.gz (10.9 kB view details)

Uploaded Source

File details

Details for the file NHentaidesu-1.9.tar.gz.

File metadata

  • Download URL: NHentaidesu-1.9.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for NHentaidesu-1.9.tar.gz
Algorithm Hash digest
SHA256 88469ee6c5fb8fbd1fa3da3953c7a2a08261188db1611fdb9bcff945308598f0
MD5 ab722fe23b3daff62687ee0ffa7b39d4
BLAKE2b-256 06a0f58fae15be959cabbdf921cc44fa5403aa23be8001d105c8b3b9cf45badd

See more details on using hashes here.

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