New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hentai-chan-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hentai-chan-api

Wrapper over https://hentaichan.live | There is also an asynchronous version, go to github

  • 1.0.2
  • PyPI
  • Socket score

Maintainers
1

PyPI version PyPI - License

HentaiChanApi

Wrapper over https://hentaichan.live

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)  # '40918-doll-house-glava-2'
    print(el.title)  # 'Doll House - глава 2'
    print(el.poster)  # https://imgcover.../.../01.jpg'
    print(el.series)  # 'Оригинальные работы'
    print(el.author)  # 'Sexgazers'
    print(el.translator)  # 'Zone'
    print(el.content.images)  # ['https://.../.png', 'https://.../.png'...]
    print(el.tags)  # ['анал', 'без цензуры', 'большая грудь', ...]
    print(el.date)  # '17 января 2022'
    

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()  # ['3D', 'action', 'ahegao', 'bdsm', 'corruption', ...]

manga = hc.search(tag=tags[0])  # [Manga(id='40779-ms-i', title='Ms. I (Невыразимые секреты её прошлого)', post...)...]
print(manga[0].title)  # Ms. I (Невыразимые секреты её прошлого)
print(manga[0].content.images)  # ['https://mimg2.imgschan.xyz/manganew/m/1641154521_ms.-i/001.jpg', 'https://...', ...]

Search query example:

from hentai_chan_api import HentaiChan

hc = HentaiChan()

tags = hc.get_all_tags()  # ['3D', 'action', 'ahegao', 'bdsm', 'corruption', ...]

manga = hc.search(page_num=3, query='bikini')  # [Manga(...)...]
print(manga[0].title)  # Bikini's Bottom
print(manga[0].content.images)  # ['https://mimg2.imgschan.xyz/manganew/l/1630962513_lightsource-bikinis-bot...', ...]

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc