NHentai

class modules.fetchers.nh.NHentai(link: str = None, manga: int = None, chapstart=None)

This is the fetcher in charge of https://nhentai.net/ The fetcher is of standalone type, it considers every manga as a unique non chaptered scan.

__init__(link: str = None, manga: int = None, chapstart=None)

Initializes the instance of the nhentai fetcher, it needs either :param manga: or :param link: to work.

Parameters:
  • link (str) – link of the scan wanted
  • manga (str) – numbered id corresponding to the manga on the website, ex: 177013
  • chapstart – number of the chapter that the download is supposed to start, it’s not used here but needs to be in the definition to respect the fetcher api
Raises:

MangaNotFound – the scan asked for can’t be found

is_last_chapter()

Not used as there is only one chapter but needed to respect the api

is_last_image()

Checks if it’s the last image in the current chapter :rtype: bool

next_chapter()

Not used as there is only one chapter but needed to respect the api

next_image()

Goes to the next image in the scan being fetched.

quit()

Method used to close everything that was used after finishing to use the fetcher