Giter Club home page Giter Club logo

gogoanimeapi's Issues

get_episodes_link error??

get_episodes_link is it working correctly now ???... It worked before 2 days... but now i cant get the output

Traceback (most recent call last):
File "C:/Users/91709/PycharmProjects/pythonProject4/main.py", line 14, in
anime_link = anime.get_episodes_link(animeid="tonikaku-kawaii-dub", episode_num=3)
File "C:\Users\91709\PycharmProjects\pythonProject4\venv\lib\site-packages\gogoanimeapi.py", line 92, in get_episodes_link
dow_url1 = soup.findAll('div', {'class': 'dowload'})[0].find('a')

Error: IndexError: list index out of range

Hey there, first of all I'd like to say amazing initiative, I've so far not seen a single Gogoanime API. Now for the problem, I tried to make a simple script that prints all the download links for a given anime, here is the code:

from gogoanimeapi import gogoanime as anime

for i in range(1,26):
    links = anime.get_episodes_link(animeid="shingeki-no-kyojin", episode_num=i)
    link = links['(HDP-mp4)']
    print(f'Episode {i}: {link}\n')

This works good up to episode 16 but then it spits out this error:
Traceback (most recent call last): File "C:\Users\aashi\Desktop\DownloaderX.py", line 4, in <module> links = anime.get_episodes_link(animeid="shingeki-no-kyojin", episode_num=i) File "D:\Python\lib\site-packages\gogoanimeapi.py", line 97, in get_episodes_link dow_url6 = soup.findAll('div', {'class': 'dowload'})[5].find('a') IndexError: list index out of range
I hope you reply with something when you get free
(Sorry if this is improper, this is my first ever issue I've posted)

Edit: Last night this error appeared after Episode 2 today it's showing this error after Episode 16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.