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

from animec import *

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

from animec import *

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

API Documentation

List of properties and methods currently supported by animec. Official documentation coming soon!

charsearch()
----- .title
----- .url
----- .image_url

aninews()
----- .news
----- .titles
----- .links

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

animec-0.0.6-py3.8.egg (5.9 kB view details)

Uploaded Egg

animec-0.0.6-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: animec-0.0.6.tar.gz
  • Upload date:
  • Size: 4.1 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.6.tar.gz
Algorithm Hash digest
SHA256 4907a7c882c43fb1b4ab577c4b05da5dc3b52849baa7b76dc4d27e6b7c34139d
MD5 aef9dd8d8dc6363cd38fcbf18bae5257
BLAKE2b-256 c7d5f352b8a9e58f80327c93c9658f9e591f8a0e92155b651ddce7906d0c29e2

See more details on using hashes here.

File details

Details for the file animec-0.0.6-py3.8.egg.

File metadata

  • Download URL: animec-0.0.6-py3.8.egg
  • Upload date:
  • Size: 5.9 kB
  • Tags: Egg
  • 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.6-py3.8.egg
Algorithm Hash digest
SHA256 ee0dd40dabcfd0530011c181a059df80f018de08b22617f9dacd869ae3390481
MD5 9bc957c98813df413574906e3d43d6a7
BLAKE2b-256 a973979cba1189619f24c82294a03c37cc2381fb09ba5fb72fbc8d55814d55e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: animec-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b88be0ef83d58d21f2b69c0e873640506453e263a71ce7edce1bc102970b08cb
MD5 80b40d4dfeaf99fa8a46f142cb0cbb57
BLAKE2b-256 54ab64c3b03fd87f6af3ac91fc132232e806132ec7d8c0ac126536d887f3f8f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page