imdb

Getting movie ID from filmography in IMDbPy results

别来无恙 提交于 2021-02-08 15:14:44
问题 I'm trying to create a dataset that allows me to join actors and movies based on actor IDs and movie IDs from the Python IMDb API. Right now, I am trying to extract a list of movie IDs from an actor's filmography and cannot do it. For example, I know the ID for Rodney Dangerfield on IMDb is 0001098. I can see his whole filmography with: from imdb import IMDb ia = IMDb() actor_results = ia.get_person_filmography('0001098') which returns a large dictionary. I can see the most recent movie where

Getting movie ID from filmography in IMDbPy results

只谈情不闲聊 提交于 2021-02-08 15:13:46
问题 I'm trying to create a dataset that allows me to join actors and movies based on actor IDs and movie IDs from the Python IMDb API. Right now, I am trying to extract a list of movie IDs from an actor's filmography and cannot do it. For example, I know the ID for Rodney Dangerfield on IMDb is 0001098. I can see his whole filmography with: from imdb import IMDb ia = IMDb() actor_results = ia.get_person_filmography('0001098') which returns a large dictionary. I can see the most recent movie where

Scrapy FormRequest login to imdb involving javascript form field

半城伤御伤魂 提交于 2021-01-29 14:46:36
问题 I have an imdb lists url that I want to parse. I say it as base_url. I have done lot of search online but couldn't find anybody making it through to login to imdb. Probably due to almost 10 items required in FormRequest formdata or some other complexity. I need to login to imdb before parsing that is not working at all. I understand and strongly think there are multiple errors in this code that will pop up once currently active error is fixed, so please keep patience with how this matter is

Is there a way to extract IMDb reviews using IMDbPY?

醉酒当歌 提交于 2021-01-01 07:21:15
问题 I do not need the data-set, that's available in Kaggle . I want to extract a movie review from IMDb using IMDbPY or any other scraping method . https://imdbpy.github.io/ 回答1: While it is not obvious from the imdbpy docs. You can always check the attributes of variable by checking the keys of the variables. Not all information that you are looking for is not immediately available when you scrape a movie using imdbpy. In your case you want to get the reviews. So you have to add them. We can see

Is there a way to extract IMDb reviews using IMDbPY?

十年热恋 提交于 2021-01-01 07:21:07
问题 I do not need the data-set, that's available in Kaggle . I want to extract a movie review from IMDb using IMDbPY or any other scraping method . https://imdbpy.github.io/ 回答1: While it is not obvious from the imdbpy docs. You can always check the attributes of variable by checking the keys of the variables. Not all information that you are looking for is not immediately available when you scrape a movie using imdbpy. In your case you want to get the reviews. So you have to add them. We can see

ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type list) in Keras/Tensorflow Python

爷,独闯天下 提交于 2020-08-25 03:59:49
问题 i'm currently working for a binary text classification using imdb keras dataset. I have been try to fix this problem for a few hours, looking for answer in stackoverflow and github but that doesn't help. Here's my code import tensorflow as tf from tensorflow import keras import numpy as np data = keras.datasets.imdb (x_train,y_train),(x_test,y_test) = data.load_data() dictionary = data.get_word_index() dictionary = {k:(v+3) for k,v in dictionary.items()} dictionary['<PAD>'] = 0 dictionary['

ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type list) in Keras/Tensorflow Python

亡梦爱人 提交于 2020-08-25 03:58:52
问题 i'm currently working for a binary text classification using imdb keras dataset. I have been try to fix this problem for a few hours, looking for answer in stackoverflow and github but that doesn't help. Here's my code import tensorflow as tf from tensorflow import keras import numpy as np data = keras.datasets.imdb (x_train,y_train),(x_test,y_test) = data.load_data() dictionary = data.get_word_index() dictionary = {k:(v+3) for k,v in dictionary.items()} dictionary['<PAD>'] = 0 dictionary['

Save Page As XML

て烟熏妆下的殇ゞ 提交于 2020-01-25 07:36:08
问题 I have made a script that generates an IMDB API link for a movie in XML. Once this link is generated it will save to an XML file with its contents. The only issue is that the contents aren't saving. Link generated: http://imdbapi.org/?title=One+Piece&type=xml&plot=simple&mt=none&episode=0&aka=simple&release=simple PHP script: $url="http://imdbapi.org/?title=One+Piece&type=xml&plot=simple&mt=none&episode=0&aka=simple&release=simple"; $curl = curl_init(); $data = fopen("text.xml", "w"); curl

Imdb description [closed]

纵然是瞬间 提交于 2020-01-17 04:29:05
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . In my app I have list of movies, that updates dynamically. Is it possible when user click on movie item, to start installed Imdb app and to show movie description? 回答1: You can try to use imdb:///name/<nameID>

mysql missing soundtrack information after running imdbpy2sql.py

我与影子孤独终老i 提交于 2020-01-06 15:18:26
问题 I am referencing this stackoverflow answer. https://stackoverflow.com/a/20948609/4891914 I can't comment on it because my reputation isn't above 50. I used the exact code but get this error: Traceback (most recent call last): File "search.py, line 47, in <module> print inglorious['soundtrack'] File "/usr/local/lib/python2.7/dist-packages/imdb/utils.py", line 1469, in __getitem__ rawData = self.data[key] KeyError: 'soundtrack' I also tried this variant: from imdb import IMDb ia = IMDb('sql',