Skip to main content

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


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

Uploaded Source

Built Distribution

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

animec-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: animec-0.1.0.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

Hashes for animec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1ad43c92a4a00857ef5af29526ff94c0a5ee4a746211d8413314a63daad41f0c
MD5 7a14e665a5ae183924a3f1f3693cdb56
BLAKE2b-256 cfc4573eda05bd9f66462e82cead6e053e729d62bfe90566d86c901d2fba44e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: animec-0.1.0-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

Hashes for animec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2812585af710c828ac75d9450a103887814215751705fadd3d926806c971bf7
MD5 5bfada2d0056f490a98b89a3ff88c009
BLAKE2b-256 1cf8a46628a87fb2bb19e417637c45a52384fe81855a4894c4a1ef5a50fe3aac

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