Skip to main content

A module to get data about anime characters, news, info, lyrics and more.

Project description

Animec

A module to get data about anime characters, news, info, lyrics and more. The module scrapes myanimelist to parse requested data.

If you wish to see a feature, please raise an issue. We will surely work on it. You can also join our Discord to get regular updates about the module.

See the Docs for a complete documentation: https://animec.readthedocs.io/en/latest/.

Installation and Usage

To install the module:

pip install animec

To import the module:

import animec
# OR
from animec import *

Examples

Extracting an anime character's data

result = Charsearch("okabe rintarou")

print(result.title, result.url, result.image_url, sep="\n")

'''
Output: (As retrieved from myanimelist), check the documentation for a list of all supported attributes
Rintarou Okabe (岡部 倫太郎)
https://myanimelist.net/character/35252/Rintarou_Okabe
https://cdn.myanimelist.net/images/characters/6/122643.jpg
'''

Requesting anime news

news = Aninews()   #default value is 3, check the documentation for a list of all supported attributes

print(news.titles)  #returns news titles
print(news.descripion)   #returns news description

Getting anime info and recommendations

anime = Anime("dr stone")

print(anime.url)
print(anime.name)
print(anime.description)    #check the documentation for a list of all supported attributes
print(anime.recommend())  #returns a list of anime recommendations

Anime Lyrics

lyrics = Anilyrics("Ashiato")
print(lyrics.romaji())

Links

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

animec-0.4.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

animec-0.4-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file animec-0.4.tar.gz.

File metadata

  • Download URL: animec-0.4.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for animec-0.4.tar.gz
Algorithm Hash digest
SHA256 15ca4eea93a5a1e5fccf3a9d8d1b3fb305c87885d114dba5ac8b486b50c8d1c4
MD5 49e3ab93ce598b62c271e78ea09104ef
BLAKE2b-256 734a5e830d920d3029116254a31476c0d9041a1203d61b66f162b6d3ce350b5d

See more details on using hashes here.

File details

Details for the file animec-0.4-py3-none-any.whl.

File metadata

  • Download URL: animec-0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for animec-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8989085a8665b09fb9178c8ab5e2791cde20ad6fe7f6604e10d858637c4162cc
MD5 075e5b577b3cd0eddaf0393c5ceacf56
BLAKE2b-256 56ecf6d8faa4b26b700e1549da3116f7ad8b3443803ffef701da73a1ccbbf290

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