anikimiapi icon indicating copy to clipboard operation
anikimiapi copied to clipboard

'NoneType' object has no attribute 'find'

Open tanner02 opened this issue 4 years ago • 2 comments

There seems to be an error in the API

Traceback (most recent call last): File "/Users/user/Library/Python/3.9/lib/python/site-packages/anikimiapi/anikimi.py", line 218, in get_episode_link_advanced source_url = lnk.find("li").a AttributeError: 'NoneType' object has no attribute 'find'

tanner02 avatar Dec 06 '21 14:12 tanner02

yes, this was simply because the host website has been updated and gives 403 error code if user-agent is not set in request headers. i will make a issue and consequently a PR for fixing this.

ryan-k8 avatar Dec 07 '21 16:12 ryan-k8

Thank you, I'm looking forward to it!

tanner02 avatar Dec 08 '21 17:12 tanner02