python - IMDbPY get_top250_movies() returns empty list -


when try top 250 movies imdbpy returns empty list:

>>> imdb import imdb >>> imdb_instance=imdb() >>> top250=imdb_instance.get_top250_movies() >>> top250 [] 

any idea? above code should return list of top 250 movies rated imdb found here. problem code returns empty array, , not list of 250 movies.

i found problem.

i did: >>>import imdb >>>dir(imdb). dir() useful python function returns classes , functions under object.

from there, found reason, way written, class imdbbase contains get_top250_movies(), not imdb. change from imdb import imdb from imdb import imdbbase , instance that.

edit: point, @user3577702 pointed out abstract base class (oops).

the mysterious empty list seems have been problem while. found question on google groups. according answer,

the version in svn repository should work.

however, no longer case. current commit doesn't work.

i have started new question, maintainer respond soon.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -