Fanfox¶
-
class
pyscandl.modules.fetchers.
Fanfox
(link: str = None, manga: str = None, chapstart=1)¶ This is the fetcher in charge of https://fanfox.net/
-
__init__
(link: str = None, manga: str = None, chapstart=1)¶ Initializes the instance of the nhentai fetcher, it needs either manga or link to work.
Parameters: - link (str) – link of the scan wanted
- manga (str) – manga name with all the non alpha numeric characters with “_”, ex: fullmetal_alchemist
- chapstart (int/float/str) – number of the chapter that the download is supposed to start
Raises: MangaNotFound – the scan asked for can’t be found
-
go_to_chapter
(chap_num)¶ Make the fetcher go to the asked chapter.
Parameters: chap_num (int/str/float) – chapter number that was asked for
Raises: - MangaNotFound – the asked chapter doesn’t exist
- EmptyChapter – the chapter exists but is void of images
-
next_image
()¶ Goes to the next image in the scan being fetched.
-
is_last_image
()¶ Checks if it’s the last image in the current chapter. :rtype: bool
-
next_chapter
()¶ Goes to the next chapter
-
is_last_chapter
()¶ Checks if the current chapter is the last available one
Return type: bool
-
classmethod
scan
(link: str = None, manga: str = None)¶ It is a class method to avoid initializing a fetcher with a chapter for othing, which would take time and resources for nothing. As a result you onnly get either the manga link or the manga id to do the method.
Gives a list of all the chapters available for that current manga. The number given must correspond to the number you give to specify the chapters you want to the fetcher. To facilitate the usage please return a list of int and floats for the .x chapters.
Parameters: - link (str) – link of the manga
- manga (str) – unique id of the manga
Return type: list[int/float]
Raises: MangaNotFound – the asked manga doesn’t exist
-
quit
()¶ Method used to close everything that was used after finishing to use the fetcher
-