Skip to content
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

Broken #5

Open
mrx23dot opened this issue Jun 13, 2021 · 0 comments
Open

Broken #5

mrx23dot opened this issue Jun 13, 2021 · 0 comments

Comments

@mrx23dot
Copy link

Looks like imdb made some change that breaks it:

rating = imdb.getRating(name)

File "C:\python36\lib\site-packages\IMDBAPI_init_.py", line 32, in getRating
return IMDB.getRatingByImdbId(self, IMDB.getIdFromName(title))
File "C:\python36\lib\site-packages\IMDBAPI_init_.py", line 36, in getRatingByImdbId
return re.sub('\s+', '', IMDB.parseHTML(soup, 'div', 'class', 'ratingValue').strong.span.text)
AttributeError: 'NoneType' object has no attribute 'strong'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant