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 API 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.
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)
Rintarou Okabe (岡部 倫太郎)
https://myanimelist.net/character/35252/Rintarou_Okabe
https://cdn.myanimelist.net/images/characters/6/122643.jpg
'''
Requesting anime news
news = aninews(3) #default value is 2
print(news.titles) #returns news titles
print(news.links) #returns news links
print(news.descripion) #returns news description
print(news.images) #returns news images
Getting anime info and recommendations
anime = anime("dr stone")
recommendations = anime.recommend()
print(anime.url)
print(anime.name)
print(anime.description) #check the documendation for a list of all supported attributes
print(recommendations) #returns a list of anime recommendations
Anime Lyrics
lyrics = anilyrics("Ashiato")
print(lyrics.romaji)
API Documentation
List of properties and methods currently supported by animec. Official documentation coming soon!
charsearch()
----- .title
----- .url
----- .image_url
aninews()
----- .titles
----- .links
----- .description
----- .images
anime()
----- .url
----- .name
----- .description
----- .poster
----- .title_english
----- .title_jp
----- .alt_titles
----- .opening_themes
----- .ending_themes
----- .episodes
----- .aired
----- .broadcast
----- .rating
----- .ranked
----- .popularity
----- .favorites
----- .recommend()
anilyrics()
----- .romaji
----- .english
----- .kanji
Credits
Author: DriftAsimov
GitHub: https://github.com/DriftAsimov
Language Used: Python
Sites:
https://myanimelist.net/
https://www.animesonglyrics.com/
Contact Us
Mail: driftasimov@gmail.com
Discord: Drift Asimov#3338 | https://discord.gg/x3qAZV3
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file animec-0.1.2.tar.gz.
File metadata
- Download URL: animec-0.1.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00f1f224d15785ec0719b103f1a662f2b9fb5daa89cd10c23b5a37a471a592b5
|
|
| MD5 |
73b2724a3b1b35dfe3831f145ab7afc5
|
|
| BLAKE2b-256 |
ea8f4e56d839eda2dfd64729b266ed438a0bcc0a9e6639efbb77c82bf2ac208e
|
File details
Details for the file animec-0.1.2-py3-none-any.whl.
File metadata
- Download URL: animec-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11d3d652acaf7309928d3b4abd4cca3a659d61600caf17d96ae2ae2618fe50d7
|
|
| MD5 |
b009e20bea843db349dc9341dd43ffdb
|
|
| BLAKE2b-256 |
f26178b0ae9b95f44bcd23ac1e0304c702136ca9f5569bdca9ae27a7cd6e6f7c
|