-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while fetching anime info. #3
Comments
I got that error too. I will try look in that problem. |
Thanks, that would be great! |
Well I made temporary fix... because I couldn't make it find 'Synopsis' with BS4... # Lame Fix
synopsis_elt = media_page.find_all(u'h2')
for item in synopsis_elt:
if 'Synopsis' in item.text:
synopsis_elt = item.parent
utilities.extract_tags(synopsis_elt.find_all(u'h2'))
for item in synopsis_elt(["script", "style"]):
item.extract()
media_info[u'synopsis'] = synopsis_elt.text.strip() |
Sorry I've been unreachable; I'll take a look at this this weekend, since it looks like there's some changes that need to be made to pass all the tests. |
Oh, that's great :) |
Started getting this error while retrieving info on any anime about a week ago.
I had no idea what to do so I tried commenting out the following lines (193-195) which restored partial functionality.
This let me fetch an anime's title, rank, score, episodes but keeps returning
NoneType
for every call toanime.related
The complete nosetests results are in this gist.
This API is really awesome so hoping it'll be fixed.
Thanks!
The text was updated successfully, but these errors were encountered: