我想通过使用 imdbpy 根据流派信息获取电影。我找到了 IMDb.get_keyword 函数,但它对我不起作用。任何想法?
例子:
from imdb import IMDb
ia = IMDb()
print ia.get_keyword(u'ring', results = 5)
Are you behind any proxy?
In that case, you might need to set_proxy.
i.set_proxy('http://yourhttproxyurl:proxyport/')
And then just use search_keyword to search for movies which might match a particular keyword for genre
import imdb
ia = imdb.IMDb()
t_result = ia.search_keyword(u'comedy')
// process your list of t_result