API
This page documents the usuable methods of shiinobi
Builder
This type of classes returns the available entries from the website.
Anime
-
class shiinobi.builder.myanimelist.anime.MyanimelistAnimeBuilder[source]
The base class for anime builder
-
build_dictionary(excluded_ids: list[int] | None = None, sort: bool = False) → dict[int, str][source]
Anime Demographics
-
class shiinobi.builder.myanimelist.anime_demographics.MyanimelistAnimeDemographicsBuilder[source]
The base class for anime demographics builder
-
build_dictionary(sort=False) → dict[int, str][source]
Anime Explicit Genres
-
class shiinobi.builder.myanimelist.anime_explicit_genres.MyanimelistAnimeExplicitGenreBuilder[source]
The base class for anime explicit genre builder
-
build_dictionary(sort=False) → dict[int, str][source]
Anime Genre
-
class shiinobi.builder.myanimelist.anime_genres.MyanimelistAnimeGenreBuilder[source]
The base class for anime genre builder
-
build_dictionary(sort=False) → dict[int, str][source]
Anime Theme
-
class shiinobi.builder.myanimelist.anime_theme.MyanimelistAnimeThemeBuilder[source]
The base class for anime theme builder
-
build_dictionary(sort=False) → dict[int, str][source]
Character
-
class shiinobi.builder.myanimelist.character.MyanimelistCharacterBuilder[source]
The base class for character builder
-
build_dictionary(excluded_ids: list[int] | None = None, sort: bool = False) → dict[int, str][source]
Decorators
-
@shiinobi.decorators.return_error_decorator.return_on_error(return_type: T) → Callable[[Callable[[P], T]], Callable[[P], T]][source]
Decorator to handle specific exceptions by returning a default value.
Catches:
- AttributeError: When selectolax fails to find DOM node
- IndexError: When selectolax finds empty DOM node
- ValueError: Additional error case
Utilities
-
class shiinobi.utilities.regex.RegexHelper[source]