Skip to main content

Unofficial API for animeforce.org.

Project description

anime-enforce Logo

What it is

anime-enforce is a small package that provides unofficial API for the animeforce.org Italian anime website. It is part of a bigger project and the reasons behind it are various. At the moment, it is only tested it with Python3.5+.

Features

  • Get full anime list.
  • Retrieve info and episodes from anime page.
  • Retrieve download link for a self-hosted episode.
  • More to come soon.

Quick start

Installation

anime-enforce can be installed using pip:

$ pip install -U anime-enforce

If you want to run the latest version of the code, you can install from Github:

$ pip install -U git+git://github.com/Kyraminol/anime-enforce.git

Usage

Warning: as this project is in early stage, API can change quite often. I’ll try to make sure this section stays update, so please check here when updating. Simple iteration through anime list, getting info and episodes:

from anime_enforce import Enforcer  # API Wrapper

enforcer = Enforcer()
anime_list = enforcer.anime_list()
# Returns a list of Anime object, supports force_update=True argument
for anime in anime_list:
    print(anime.name, anime.link)
    print(anime.image_link())
    print(anime.info())
    # Both .image_link() and .info() support force_update=True argument
    episode_list = anime.episode_list()
    # Returns a list of Episode object, supports force_update=True argument
    for episode in episode_list:
        print(episode.name, episode.link)
        episode_download_link = episode.download_link()
        # Supports force_update=True argument
        print("Download/Stream:", episode_download_link)

Issues

Given the early stage of the project, issues are not uncommon. Please check out the issue page for a matching issue, or open a new one.

You can reach me with the Contact section below, I’ll try to help whenever I can.

Contact

Credits

anime-enforce is written and maintained by Kyraminol

I do not own animeforce.org, nor any anime or subs there.

Many thanks to the maintainers of these awesome projects:

And thanks to:

  • All anime subs teams, without them this wouldn’t exist.
  • Everyone who will contribute!

License

TODO: Write LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
anime-enforce-0.1.1.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page