Random

Fetches a random manga from the currently selected source. This is useful for discovering new manga or generating recommendations.

  • Returns: A Manga object for the randomly selected manga.

  • Raises:

    • SourceWasNotDefined if no source has been set before calling this method.

    • NotImplementedError if the current source does not support random fetching.

# Example to fetch a random manga
try:
    random_manga = enma.random()
    print(f"Random Manga Title: {random_manga.title.english}")
except NotImplementedError:
    print("Error: Random functionality not supported.")

Last updated