Skip to main content

Python anime information grabber.

Project description

pyanimeinfo

PyPI PyPI - Python Version Loc Comments

Code Test Package Release codecov

GitHub Org's stars GitHub stars GitHub forks GitHub commit activity GitHub issues GitHub pulls Contributors GitHub license

Python anime information grabber

Installation

You can simply install it with pip command line from the official PyPI site.

pip install pyanimeinfo

For more information about installation, you can refer to Installation.

Quick Start

Accessing Information from Bangumi.tv

We can retrieve information from Bangumi.tv.

from pyanimeinfo.bangumitv import BangumiTVClient

client = BangumiTVClient()

# search subject from bangumi.tv
client.search_subjects('Railgun')

# query specific subject from bangumi.tv
# e.g. Railgun
client.get_subject(2585)

# list characters in this subjects
client.get_subject_characters(2585)

# query specific character
client.get_character(3575)

# list character related persons
# e.g. CV, artists
client.get_character_related_persons(3575)

# list character related subjects
# e.g. Railgun series
client.get_character_related_subjects(3575)

# get person
client.get_person(4670)

Accessing Information from MyAnimeList.net

We can access information from MyAnimeList. However, since the original MyAnimeList site does not provide a useful API, we utilize the unofficial API Jikan V4 to retrieve data from MyAnimeList.

from pyanimeinfo.myanimelist import JikanV4Client

client = JikanV4Client()

# search animes
client.search_anime('Railgun')

# get specific anime
client.get_anime(6213)

# get full information of specific anime
client.get_anime_full(6213)

# get characters in specific anime
client.get_anime_characters(6213)

# search characters
client.search_anime('misaka mikoto')

# get specific character
client.get_character(13701)

# get full information of specific character
client.get_character_full(13701)

# get character related information
client.get_character_related_animes(13701)
client.get_character_related_manga(13701)
client.get_character_voice_actors(13701)
client.get_character_pictures(13701)

Important Notes

  1. The pyanimeinfo library is primarily designed for querying anime-related information and is not a comprehensive client for bangumi.tv or any other website. Therefore, we currently do not plan to provide support for operations like user authentication and user sessions in the short term. Your understanding is appreciated.

  2. The reason this library is not named pybangumitv is that our intention is not limited to integrating only the bangumi.tv website. In the future, we aim to introduce support for additional websites, including MyAnimeList, Fandom, and others. Stay tuned for updates.

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

pyanimeinfo-0.0.3.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

pyanimeinfo-0.0.3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file pyanimeinfo-0.0.3.tar.gz.

File metadata

  • Download URL: pyanimeinfo-0.0.3.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyanimeinfo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0245655de4b2c062520a307ecbaf1c671e3fcc6a1055241c19993b4b8f49f2fc
MD5 a97154164783343aa128d89705e44e56
BLAKE2b-256 8a2bf68774a45ebf35184ff64f5da39d95e2ac18707d222147ea5785b753d3b7

See more details on using hashes here.

File details

Details for the file pyanimeinfo-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyanimeinfo-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyanimeinfo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 656e74084223d6b234a74e0a2f892f0d9a3486496a9a2134619cf4eef876a55e
MD5 1455101a87c5e5e6c553ef00a69573ea
BLAKE2b-256 3de5fc82d3ca4a36299e900722ac0816dc9e08b68f64cda511dd825bb41b2107

See more details on using hashes here.

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