Powerful and Async API for AnimeWorld.tv 🚀

Overview

Powerful and Async API for AnimeWorld.tv 🚀

Installation ⚙️

pip install git+https://github.com/stefanodvx/animeworld@main

or

https://github.com/stefanodvx/animeworld
cd animeworld
python setup.py install

Example codes

Search anime 🔎

import asyncio
import json

from animeworld import AnimeWorld
aw = AnimeWorld()

async def main():
    results = await aw.search("one piece")
    print(json.dumps(results, indent=4))

asyncio.run(main())

Output:

[
    {
        "title": "One Piece",
        "thumb": "https://img.animeworld.tv/locandine/8056a82e973dde98ebb82abd39dc69.jpg",
        "url": "https://www.animeworld.tv/play/one-piece-subita.j9hCX",
        "tags": []
    },
    {
        "title": "One Piece (ITA)",
        "thumb": "https://img.animeworld.tv/locandine/d5nah.jpg",
        "url": "https://www.animeworld.tv/play/one-piece-ita.d5nah",
        "tags": [
            "DUB"
        ]
    },
    {
        "title": "One Piece 3D2Y: Superare la Morte di Ace! Rufy e il Giuramento Fatto ai Compagni",
        "thumb": "https://img.animeworld.tv/locandine/64755l.jpg",
        "url": "https://www.animeworld.tv/play/one-piece-3d2y-superare-la-morte-di-ace-rufy-e-il-giuramento-fatto-ai-compagni.2lJmq",
        "tags": [
            "Special"
        ]
    },
    {
        "title": "One Piece Movie 14: Stampede",
        "thumb": "https://img.animeworld.tv/locandine/mawDj.jpg",
        "url": "https://www.animeworld.tv/play/one-piece-movie-14-stampede.mawDj",
        "tags": [
            "Movie"
        ]
    },
    {
        "title": "One Piece: Episode of Skypiea",
        "thumb": "https://img.animeworld.tv/locandine/lPxq68n.jpg",
        "url": "https://www.animeworld.tv/play/one-piece-episode-of-skypiea.lnBAU",
        "tags": [
            "Special"
        ]
    }
]

Get anime info 👁️

(Pass episodes=True to get episodes list, for anime with 900+ episodes it could be boring getting an huge output)

import asyncio
import json

from animeworld import AnimeWorld
aw = AnimeWorld()

async def main():
    data = await aw.get("https://www.animeworld.tv/play/saihate-no-paladin.aYZzH/gADGc4", episodes=True)
    print(json.dumps(data, indent=4))

asyncio.run(main())

Output:

{
    "title": "Saihate no Paladin",
    "thumb": "https://img.animeworld.tv/locandine/aYZzH.jpg?0",
    "views": "50.939",
    "status": "In corso",
    "episoes_count": 12,
    "episodes_on_site": 4,
    "description": "In una citt\u00e0 di morti da tempo in rovina e lontana dalla civilt\u00e0, vive un solo bambino umano. Il suo nome \u00e8 Will ed \u00e8 stato cresciuto da tre non-morti: lo scheletrico guerriero Blood, la graziosa sacerdotessa mummificata Mary e lo stregone spettrale Gus. I tre amano il ragazzo e gli insegnano tutto quello che sanno. Un giorno Will inizia a chiedersi chi \u00e8 e da dove viene e dovr\u00e0 svelare i misteri di questo paese abitato da morti.",
    "duration": "23 min/ep ",
    "rating": "7.88",
    "genres": [
        "Avventura",
        "Fantasy"
    ],
    "studio": "Children's Playground Entertainment",
    "season": "Autunno 2021",
    "release_date": "09 Ottobre 2021",
    "audio": "Giapponese",
    "categories": [
        "Anime"
    ],
    "related": [],
    "episodes": [
        {
            "url": "https://www.animeworld.tv/play/saihate-no-paladin.aYZzH/E5BB3K",
            "number": 1.0
        },
        {
            "url": "https://www.animeworld.tv/play/saihate-no-paladin.aYZzH/3UJJMm",
            "number": 2.0
        },
        {
            "url": "https://www.animeworld.tv/play/saihate-no-paladin.aYZzH/RnoItb",
            "number": 3.0
        },
        {
            "url": "https://www.animeworld.tv/play/saihate-no-paladin.aYZzH/gADGc4",
            "number": 4.0
        }
    ]
}

Get download URL ⬇️

import asyncio

from animeworld import AnimeWorld
aw = AnimeWorld()

async def main():
    url = await aw.download_url("https://www.animeworld.tv/play/saihate-no-paladin.aYZzH/gADGc4")
    print(url)

asyncio.run(main())

Output:

https://server14.streamingaw.online/DDL/ANIME/SaihateNoPaladin/SaihateNoPaladin_Ep_04_SUB_ITA.mp4
You might also like...
Revolt.py - An async library to interact with the https://revolt.chat api.

Revolt.py An async library to interact with the https://revolt.chat api. This library will be focused on making bots and i will not implement anything

An async-ready Python wrapper around FerrisChat's API.

FerrisWheel An async-ready Python wrapper around FerrisChat's API. Installation Instructions Linux: $ python3.9 -m pip install -U ferriswheel Python 3

Aio-binance-library - Async library for connecting to the Binance API on Python

aio-binance-library Async library for connecting to the Binance API on Python Th

A Powerful telegram giveawayz bot based on the python-telegram-bot API
A Powerful telegram giveawayz bot based on the python-telegram-bot API

GiveawayZ Bot A Powerful telegram giveawayz bot based on the python-telegram-bot API. Powered by Team Zyntax and Team DFX Developed by @Zycho-Dev A pr

Async ShareX uploader written in python
Async ShareX uploader written in python

Async ShareX uploader written in python

A SageMaker Projects template to deploy a model from Model Registry, choosing your preferred method of deployment among async (Asynchronous Inference), batch (Batch Transform), realtime (Real-time Inference Endpoint). More to be added soon!
Python async SDK for betsapi.com

Python async SDK for betsapi.com

Async boto3 with Autogenerated Data Classes

awspydk Async boto3 with Autogenerated JIT Data Classes Motivation This library is forked from an internal project that works with a lot of backend AW

Async wrapper over hentaichan.live

hentai-chan-api-async is a small asynchronous parser library that will allow you to easily use manga from https://hentaichan.live Recommended to use python3.7+

Owner
null
Async ready API wrapper for Revolt API written in Python.

Mutiny Async ready API wrapper for Revolt API written in Python. Installation Python 3.9 or higher is required To install the library, you can just ru

null 16 Mar 29, 2022
YARSAW is an Async Python API Wrapper for the Random Stuff API.

Yet Another Random Stuff API Wrapper - YARSAW YARSAW is an Async Python API Wrapper for the Random Stuff API. This module makes it simpler for you to

Bruce 6 Mar 27, 2022
A modern, easy to use, feature-rich, and async ready API wrapper improved and revived from original discord.py.

A Python API wrapper that is improved and revived from the original discord.py

Orion 19 Nov 6, 2021
Mixcloud API wrapper for Python and Async IO

aiomixcloud Mixcloud API wrapper for Python and Async IO aiomixcloud is a wrapper library for the HTTP API of Mixcloud. It supports asynchronous opera

Aristotelis Mikropoulos 26 Dec 31, 2022
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.

A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Features Modern Pythonic API using async and await

Senpai Development 4 Nov 5, 2021
A modern,feature-rich, and async ready API wrapper for Discord written in Python

discord.io A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Features Modern Pythonic API using asyn

Vincent 18 Jan 2, 2023
An async python wrapper to interact with the Steam API and its CMs

steam.py A modern, easy to use, and async ready package to interact with the Steam API. Heavily inspired by discord.py and borrowing functionality fro

James Hilton-Balfe 90 Dec 15, 2022
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.

disfork A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Features Modern Pythonic API using async a

null 2 Feb 9, 2022
Async client API for the Telegram Group Calls

PyTgCalls This project allow to make Telegram group call with MTProto Api using Pyrogram and WebRTC, this is possible thanks to the power of NodeJS's

null 185 Jan 3, 2023
This is a simple unofficial async Api-wrapper for tio.run

Async-Tio This is a simple unofficial async Api-wrapper for tio.run

Tom-the-Bomb 7 Oct 28, 2022