An unofficial API to get data about anime characters, anime news, anime info and more.
Project description
Animec
An unofficial API to get data about anime characters, anime news, anime info 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 API.
Installation and Usage
To install the library:
pip install animec
To import the library:
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 urls 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
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()
Credits
Author: DriftAsimov
GitHub: https://github.com/DriftAsimov
Language Used: Python
Contact Us
Mail: driftasimov@gmail.com
Discord: Drift Asimov#3338 | https://discord.gg/x3qAZV3
Note: I do not own myanimelist. I have just used it to extract the data.
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
File details
Details for the file animec-0.1.1.tar.gz
.
File metadata
- Download URL: animec-0.1.1.tar.gz
- Upload date:
- Size: 6.5 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 | 2e1258a0d3dea5e348be831e2b479777429b8e16d0a07282b3de88e7fe659b1b |
|
MD5 | 6c474a9ae3b96d0f05b431a670c6c88f |
|
BLAKE2b-256 | 08d22e42d6115632fda19565146c44adc8c51aa28e1f653c46fe4fa03ada6b19 |
File details
Details for the file animec-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: animec-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.9 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 | e0a75a3f33ec32015aabddac0f47bb6c05ac6c49eee320b5c80cf559e6a1e0bb |
|
MD5 | 7db6c96be5ef5b9cdf9a3f1e2b4e99ec |
|
BLAKE2b-256 | 5d7b52ece66b29bd76c3b6cd06056522f8fdc2d3b1a0a721e6ba46ca79e1420d |