IMDbPY / Cinemagoer – Getting Movie Keywords /u/Oyavo Python Education

I’d like to get a list of keywords related to a specific movie when given it’s ID, however it appears that none of the built in keyword functions are working properly.

import imdbd ia = imdb.Cinemagoer() movie = ia.search_movie(movie_name) movie_id = movie[0].getID() # the following scripts give the wrong results ia.get_keyword("Comedy") # returns an empty list [] movie = ia.get_movie(movie_id, info='keywords') # returns an empty object with no variables ia.search_keyword("Comedy") # returns similar keywords, but nothing related to individual movies ia.get_movie_keywords(movie_id) # returns {'data': mappingproxy({}), 'titlesRefs': {}, 'namesRefs': {}}, which does not seem to contain anything 

Any help would be greatly appreciated, I’m attempting to create a dictionary to sort movies by keywords, and plot / plot outline / synopsis results are too vague. CinemaGoer documentation appears to yield different results, but I’m not sure why

submitted by /u/Oyavo
[link] [comments]

​r/learnpython I’d like to get a list of keywords related to a specific movie when given it’s ID, however it appears that none of the built in keyword functions are working properly. import imdbd ia = imdb.Cinemagoer() movie = ia.search_movie(movie_name) movie_id = movie[0].getID() # the following scripts give the wrong results ia.get_keyword(“Comedy”) # returns an empty list [] movie = ia.get_movie(movie_id, info=’keywords’) # returns an empty object with no variables ia.search_keyword(“Comedy”) # returns similar keywords, but nothing related to individual movies ia.get_movie_keywords(movie_id) # returns {‘data’: mappingproxy({}), ‘titlesRefs’: {}, ‘namesRefs’: {}}, which does not seem to contain anything Any help would be greatly appreciated, I’m attempting to create a dictionary to sort movies by keywords, and plot / plot outline / synopsis results are too vague. CinemaGoer documentation appears to yield different results, but I’m not sure why submitted by /u/Oyavo [link] [comments] 

I’d like to get a list of keywords related to a specific movie when given it’s ID, however it appears that none of the built in keyword functions are working properly.

import imdbd ia = imdb.Cinemagoer() movie = ia.search_movie(movie_name) movie_id = movie[0].getID() # the following scripts give the wrong results ia.get_keyword("Comedy") # returns an empty list [] movie = ia.get_movie(movie_id, info='keywords') # returns an empty object with no variables ia.search_keyword("Comedy") # returns similar keywords, but nothing related to individual movies ia.get_movie_keywords(movie_id) # returns {'data': mappingproxy({}), 'titlesRefs': {}, 'namesRefs': {}}, which does not seem to contain anything 

Any help would be greatly appreciated, I’m attempting to create a dictionary to sort movies by keywords, and plot / plot outline / synopsis results are too vague. CinemaGoer documentation appears to yield different results, but I’m not sure why

submitted by /u/Oyavo
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *