Nyahentai API
A Nyahentai API made using python webscrapping For update notes follow me on Twitter.
Instalation
pip install --upgrade Nyahentai-API
# or pip3 install --upgrade Nyahentai-API
Library Features
- Home page pagination,
- Doujin information,
- Random doujin,
- Search by id and tag,
- Character List
Usage
Home
from nyahentai import Nyahentai
if __name__ == '__main__':
nyahentai = Nyahentai()
random_doujin: HomePage = nyahentai.get_pages(page=1)
the expected output is a HomePage instance:
HomePage(
doujins: [
DoujinThumbnail(
id: str,
title: str,
lang: str,
cover: str,
data_tags: List[str])],
total_pages: int)
Random
from nyahentai import Nyahentai
if __name__ == '__main__':
nyahentai = Nyahentai()
random_doujin: Doujin = nyahentai.get_random()
The expected output is a Doujin instance:
Doujin(
id: str
title: str
secondary_title: str
tags: List[str]
artists: List[str]
languages: List[str]
categories: List[str]
characters: List[str]
parodies: List[str]
groups: List[str]
images: List[str]
total_pages: int)
It's good always remember that some doujins doesnt have many properties that are listed above like artists, characters, parodies and more. This is only the default Doujin dataclass template.
Search
from nyahentai import Nyahentai
if __name__ == '__main__':
nyahentai = Nyahentai()
search_obj: SearchPage = nyahentai.search(query='naruto', sort='popular', page=1)
search_obj: SearchPage = nyahentai.search(query='30955', sort='popular', page=1)
expected output:
SearchPage(
query: str,
sort: str,
total_results: int,
doujins: [
DoujinThumbnail(
id: str,
title: str,
lang: str,
cover: str,
data_tags: List[str])],
total_pages: int)
Doujin
from nyahentai import Nyahentai
if __name__ == '__main__':
nyahentai = Nyahentai()
doujin: Doujin = nyahentai._get_doujin(id='287167')
expected output:
Doujin(
id: str
title: str
secondary_title: str
tags: List[str]
artists: List[str]
languages: List[str]
categories: List[str]
characters: List[str]
parodies: List[str]
groups: List[str]
images: List[str]
total_pages: int)
Characters
from nyahentai import Nyahentai
if __name__ == '__main__':
nyahentai = Nyahentai()
doujin: Doujin = nyahentai.get_characters(page=1)
expected output:
CharacterListPage(
page=int,
total_pages=int,
characters=[
CharacterLink(
section: str
title: str
url: str
total_entries: int)])
Metadata
Release files for Nyahentai-API 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Nyahentai-API-1.0.0.tar.gz | 5.1 kB | Without provenance | Details for Nyahentai-API-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Nyahentai_API-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for Nyahentai_API-1.0.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / Nyahentai-API-1.0.0.tar.gz
| Download URL | Nyahentai-API-1.0.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0658a67e68a3ac682cc7607412e1159208f7012307d12da4f7e5b470564d1735
|
|
BLAKE2b-256 checksum How to use checksums |
d0487a13294aba0cc3f88e4abdc240fd0d298bc85ea0e29f3131a4d30861ccf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
|
Release files / Nyahentai_API-1.0.0-py3-none-any.whl
| Download URL | Nyahentai_API-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4542725772b1cf1427319c8e2ab1aa5e04477b6383374b2151fa08b7007518d
|
|
BLAKE2b-256 checksum How to use checksums |
546eb25522da3cf722471c25bda59fbc416dedda564b91a09dce9b3fc0e6542c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
|
Security for Nyahentai-API 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.