Skip to main content

Short info about some anime.

Project description

Anime Search

This Python program features a modular anime library leveraging the Jikan API. The animeLibrary class retrieves anime details such as title, score, episode count, and synopsis based on user input.

API

  https://api.jikan.moe/v4/anime

Installation

  pip install animesearchinfo

Usage/Examples

from anime_library import animeLibrary

def main():
    jikan = animeLibrary()
    print(" ")
    query = input("Search an anime: ")
    print(" ")
    hasil_pencarian = jikan.cek_anime(query)

    if isinstance(hasil_pencarian, dict):
        for anime in hasil_pencarian.get('data', []):
            print(f"Title: {anime.get('title')}")
            print(f"Episodes: {anime.get('episodes')}")
            print(f"Score: {anime.get('scores')}")
            print(f"Synopsis: {anime.get('synopsis')}")
            
if __name__ == "__main__":
    main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

animesearchinfo-0.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

animesearchinfo-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page