开发者

How can I retrieve a given number of movies under a given genre using imdbpy?

开发者 https://www.devze.com 2023-03-01 17:02 出处:网络
I am starting using imdbpy and I am interesting in a way to implement a method with the following specifications:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消