🚀
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