-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Krónos edited this page Jan 29, 2022
·
20 revisions
Welcome to the AnimeWorld-API wiki!
- def find
- class ServerNotSupported(Exception)
- class AnimeNotAvailable(Exception)
- class Error404(Exception)
- class DeprecatedLibrary(Exception)
import animeworld as aw
try:
anime = aw.Anime(link="https://www.animeworld.tv/play/jaku-chara-tomozaki-kun.RDPHq")
print("Titolo:", anime.getName()) # Titolo dell'anime
print("\n----------------------------------\n")
print("Trama:", anime.getTrama()) # Trama
print("\n----------------------------------\n")
print("Info:")
info = anime.getInfo()
for x in info: print(f"{x}: {info[x]}") # Informazioni presenti su Animeworld riguardanti l'anime
print("\n----------------------------------\n")
print("Episodi:")
try:
episodi = anime.getEpisodes()
except (aw.ServerNotSupported, aw.AnimeNotAvailable) as error:
print("Errore:", error)
else:
for x in episodi:
print(f"\n-> Ep. {x.number}")
for k in x.links:
print(f"\t{k.name} - {k.link}")
if x.number == '1':
x.download()
except (aw.DeprecatedLibrary, aw.Error404) as error:
print(error)