HentaiChanApi
hentai-chan-api is a small parser library
that will allow you to easily use manga from https://hentaichan.live
Recommended to use python3.7+
Async version: @HentaiChanApi-async
Install
pip install hentai-chan-api
Features
- Parsing by pages and quantities
- Search engine by queries and by tags
- Manga object to easily retrieve manga data
- Ability to use a proxy
Examples
An example of using the 'get_new' method:
from hentai_chan_api import HentaiChan
hc = HentaiChan()
manga = hc.get_new(page_num=1, count=2)
for el in manga:
print(el.id)
print(el.title)
print(el.poster)
print(el.series)
print(el.author)
print(el.translator)
print(el.content.images)
print(el.tags)
print(el.date)
Note that the arguments: "page_num=1" and "count=2" are optional.
By default, "page_num=1" and "count=20".
Also note that calling "el.content.images" will invoke the parser, which may take some time to use. I advise you to call "el.content.images" only when necessary.
Tag search example:
from hentai_chan_api import HentaiChan
hc = HentaiChan()
tags = hc.get_all_tags()
manga = hc.search(tag=tags[0])
print(manga[0].title)
print(manga[0].content.images)
Search query example:
from hentai_chan_api import HentaiChan
hc = HentaiChan()
tags = hc.get_all_tags()
manga = hc.search(page_num=3, query='bikini')
print(manga[0].title)
print(manga[0].content.images)