Skip to main content

An unofficial API to get data about anime characters, anime news and more.

Project description

Anime Character API

An unofficial API to get data about anime characters, anime news and more. The API scrapes myanimelist to get data about anime characters and anime news.

Currently, the API is very basic, but I will be adding a lot of stuff to easily extract 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.news)    #returns a dictionary with news titles as keys and values as links
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(7)

print(anime.url)
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()
----- .news
----- .titles
----- .links
----- .description
----- .images

anime()
----- .url
----- .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 or any imported module or api. I have just used them to extract the data.

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.0.87.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

animec-0.0.87-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: animec-0.0.87.tar.gz
  • Upload date:
  • Size: 5.6 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

Hashes for animec-0.0.87.tar.gz
Algorithm Hash digest
SHA256 690d9f329c2121ffeca44918eea331a90442a9ae125e7ce83a9beff0b5d6a344
MD5 46126f481eee0290dc2bac69d571ef41
BLAKE2b-256 d64f1925b2451bbdeae7a88f14bb6b3a36ad7e6a5b00482c5679a12bd36c8c42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: animec-0.0.87-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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

Hashes for animec-0.0.87-py3-none-any.whl
Algorithm Hash digest
SHA256 f52f4d68f9aa18c81e7945e54e1cb3fbed30c3e16c7dcc20d5ce4934bc604539
MD5 b73506006d25dfdfa9e20848f992a8b2
BLAKE2b-256 feac598dcb68035f717a128dc749743b7668163a6cb8343868b0237ebc94dc05

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