Animapy, anime API for Python

Animapy

An anime API for python.

What it does

Animapy is an API for Python that retrieves the animes based on a search query. Currently, it uses anitube to get portuguese subbed animes, and nwanime for english subbed animes.

Installation

If you are using PIP, just run:

pip install Animapy

Or clone the repo in github and run:

python setup.py install

Who to use it

First you need to import it to your project

from animapy import anime

Next, you just need to call it.

For the portuguese subbed animes:



resultsPT = anime.searchAnimes('naruto', quant=10, order='date', lang='pt')
for result in resultsPT:
    print result.title
    print result.image
    print result.hd
    print result.normal

And for english subbed animes:

resultsEN = anime.searchAnimes('naruto', quant=10, order='date', lang='en')
for result in resultsEN:
    print result.title
    print result.image
    print result.hd
    print result.normal

And that’s it.

Don’t forget to leave a comment below, and if you have any idea on how to improve it, tell me and i’ll be happy to do it.

You can also find me in facebook.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s