I am starting using imdbpy and I am interesting in a way to implement a method with the following specifications:
Inputs:
- numberT开发者_如何转开发oRetrieve (number of movies to retrive back)
- movieGenre (the genre of movies by example:'horror')
Output:
- List of movies object
Many thanks in advance!
Joshua
I'm way too late, but I answer for other user that will need it in the future.
You can do this (not easily, at least). My best advice is to use the imdbpy2sql.py script to populate a database of your choice (Postgresql, MySQL, SQLite and other) and then script your series of batch operation as SQL statements. It's possible that you will need to add some indexes here and there to speed-up data retrieving.
精彩评论