question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gogoanime NoneType has no attrs

See original GitHub issue

Describe the bug

Gogoanime is broken

To reproduce

anime -ll DEBUG dl "https://gogoanime.app/anime/gintama-movie-2-kanketsu-hen-yorozuya-yo-eien-nare-jlk3"
LOG

2020-08-30 17:53:02 RithvijL anime_downloader.util[2236] INFO anime-downloader 4.6.3
2020-08-30 17:53:02 RithvijL anime_downloader.util[2236] DEBUG Platform: Windows-10-10.0.19041-SP0
2020-08-30 17:53:02 RithvijL anime_downloader.util[2236] DEBUG Python 3.8.0
2020-08-30 17:53:02 RithvijL anime_downloader.sites.anime[2236] INFO Extracting episode info from page
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG -----
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG GET https://gogoanime.app/anime/gintama-movie-2-kanketsu-hen-yorozuya-yo-eien-nare-jlk3
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG {}
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG {'user-agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1'}
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG -----
2020-08-30 17:53:02 RithvijL anime_downloader.session[2236] DEBUG cached request
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG https://gogoanime.app/anime/gintama-movie-2-kanketsu-hen-yorozuya-yo-eien-nare-jlk3
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG C:\Users\Rithvij\AppData\Local\Temp\animedlgrt1rqtr\tmph088v68q
2020-08-30 17:53:02 RithvijL anime_downloader.sites.anime[2236] DEBUG Metadata scraping error: 'NoneType' object has no attribute 'find'2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG -----
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG GET https://gogoanime.app/anime/gintama-movie-2-kanketsu-hen-yorozuya-yo-eien-nare-jlk3
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG {}
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG {'user-agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.213.1 Safari/532.1'}
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG -----
2020-08-30 17:53:02 RithvijL anime_downloader.session[2236] DEBUG cached request
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG https://gogoanime.app/anime/gintama-movie-2-kanketsu-hen-yorozuya-yo-eien-nare-jlk3
2020-08-30 17:53:02 RithvijL anime_downloader.sites.helpers.request[2236] DEBUG C:\Users\Rithvij\AppData\Local\Temp\animedlgrt1rqtr\tmpeoi9nl1s
Traceback (most recent call last):
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Rithvij\AppData\Local\Programs\Python\Python38\Scripts\anime.exe\__main__.py", line 7, in <module>
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\anime_downloader\cli.py", line 53, in main
    cli()
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\click\decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\anime_downloader\commands\dl.py", line 101, in command
    anime = cls(anime_url, quality=quality,
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\anime_downloader\sites\anime.py", line 84, in __init__
    self._episode_urls = self.get_data()
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\anime_downloader\sites\anime.py", line 165, in get_data
    self._episode_urls = self._scrape_episodes()
  File "c:\users\rithvij\appdata\local\programs\python\python38\lib\site-packages\anime_downloader\sites\gogoanime.py", line 82, in _scrape_episodes
    anime_id = soup.select_one('input#movie_id').attrs['value']
AttributeError: 'NoneType' object has no attribute 'attrs'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ArjixWasTakencommented, Aug 30, 2020

gogoanime.io works fine

0reactions
Blatzarcommented, Sep 19, 2020

Gogoanime removed in favor of vidstream

Read more comments on GitHub >

github_iconTop Results From Across the Web

'NoneType' object has no attribute 'attrs' [duplicate]
1 Answer 1 · I tried your code. It still gives the error 'NoneType' object has no attribute 'attrs' . · @EzyGrip this...
Read more >
'NoneType' object has no attribute 'attrs' #48 - GitHub
It gives an error on line 240, icon = (soup.select_one('.dQrBL img.ujDFqe') On replacing it with : icon = (soup.select_one ('. XSyT2c img.
Read more >
NoneType object has no attribute text | Edureka Community
AttributeError: 'NoneType' object has no attribute 'foo' - This usually happens because you called find() and then tried to access the .foo ...
Read more >
How do I fix : attributeerror: 'nonetype' object has no attribute ...
The message is telling you that info_box.find did not find anythings, so it returned None . And a None object does not have...
Read more >
'NoneType' object has no attribute '_inc_path' - Google Groups
There's no way of knowing for sure how this occurred - it may have been caused by an earlier error at the point...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found