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
Release history Release notifications | RSS feed
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.3.0.tar.gz
(13.0 kB
view details)
Built Distribution
animec-0.3.0-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file animec-0.3.0.tar.gz
.
File metadata
- Download URL: animec-0.3.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41ff40dd8e3e65463f392506a5132365f067b9c64bde7db8f0ebfd1444b74105 |
|
MD5 | 68d6406df7347b5538c9f4ebda224e5d |
|
BLAKE2b-256 | 308e9980ab4068f15aff6ea294b2f2c81395351140093521a32502ae57a292a9 |
File details
Details for the file animec-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: animec-0.3.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32376f145de01b1ba292246522686f03e7c311ea1fcb37b448bd42034d030a5e |
|
MD5 | f1737f56dad60be17305ef0d1e442eec |
|
BLAKE2b-256 | 6f92df0db05313f120ac29904eca5e90ced922e9d0f56273c5444a67f02137aa |