IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies.
Questions tagged [imdbpy]
128 questions
9
votes
2 answers
List of all movie title, actors, directors, writers on Imdb
I am working on a web app which lets users tell their favourite movies, directors, movie- writers, and actors. For this I want to provide them a dropdown list or auto complete for each of them so that they can just pick their choices.
For this:
I…

shreyj
- 1,759
- 3
- 22
- 31
7
votes
2 answers
How do you get a thumbnail of a movie using IMDbPy?
Using IMDbPy it is painfully easy to access movies from the IMDB site:
import imdb
access = imdb.IMDb()
movie = access.get_movie(3242) # random ID
print "title: %s year: %s" % (movie['title'], movie['year'])
However I see no way to get the…

andrewrk
- 30,272
- 27
- 92
- 113
5
votes
1 answer
Getting movie ID from filmography in IMDbPy results
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…

snapcrack
- 1,761
- 3
- 20
- 40
4
votes
1 answer
How to retrieve the storyline paragraph with imdbpy?
So far, I haven't figured out how to retrieve the short description paragraph from imdb with imdbpy.
I can retrieve a very (very) long plot this way though :
ia = IMDb()
movie = ia.search_movie("brazil")
movie = movie[0]
movie =…

leplatrem
- 1,005
- 13
- 25
4
votes
1 answer
Difficulty extracting IMDb ratings by demographic (with IMDbpy)
I would like to collect the IMDb rating details by demographic (gender, age group).
When I try to use the get_movie_vote_details module in imdbpy, my output is empty.
Here is my code:
import imdb
i = imdb.IMDb(accessSystem='http')
movie =…

driskerr
- 45
- 6
4
votes
1 answer
Keras Error when checking : expected embedding_1_input to have shape (None, 100) but got array with shape (1, 3)
I created LSTM model using imdb example and tried to predict sentiment in my own string
max_features = 20000
# cut texts after this number of words
# (among top max_features most common words)
maxlen = 100
batch_size = 32
wordsA = "I like this…

motemood
- 41
- 1
- 2
4
votes
2 answers
Reading Python Documentation for 3rd party modules
I recently downloaded IMDbpy module..
When I do,
import imdb
help(imdb)
i dont get the full documentation.. I have to do
im = imdb.IMDb()
help(im)
to see the available methods. I dont like this console interface. Is there any better way of…

shadyabhi
- 16,675
- 26
- 80
- 131
4
votes
2 answers
IMDbPY installation fails
I am trying to install IMDbPY in all sorts of ways and keep failing. The package is not pure Python (it has a few C lines) and I suspect that the compilation is the root cause (I'm on Windows).
What I've attempted so far:
pip install…

snakile
- 52,936
- 62
- 169
- 241
3
votes
2 answers
IMDbPy : How can I catch IMDbDataAccessError?
I am completely noob at handling exceptions and I've been learning to work with IMDbPy.
I wanted to catch the exception if a user enters an invalid ID. I tried
import imdb
from imdb import IMDbDataAccessError
ia =…

tahnoon
- 133
- 1
- 14
3
votes
1 answer
imDbPy Example not working: 'key error'
I copied the example from the imDbPy page.
# Create the object that will be used to access the IMDb's database.
ia = imdb.IMDb() # by default access the web.
# Search for a movie (get a list of Movie objects).
s_result = ia.search_movie('The…

Alex Murphy
- 31
- 1
- 6
3
votes
1 answer
How to Find list of movies acted by an actor?
I use the below code to get the cast of a particular movie (Top 2 for instance). How can I get a list of all movies acted by the actor/actress?
For instance, I choose the movie Inception (1375666), and the cast is Leonardo DiCaprio. So how can I get…

user2810706
- 107
- 3
- 12
3
votes
1 answer
Description of the SQL movie databse made by IMDBpy
Recently, I am using IMDBpy API to scrape the IMDB dataset. In this API, there is a imdbpy2sql.py which could convert IMDB movie dataset to a SQL database.
But I can not find any description of this dataset. So I can not understand the schema of…

Zizhao
- 259
- 3
- 13
3
votes
1 answer
Extract reviews and ratings from IMDB
The Internet Movie Database does not allow scraping from their website, but does provide an FTP site with text files that can be downloaded and used for research:
http://www.imdb.com/interfaces
How can I extract reviews and the corresponding ratings…

Zach
- 4,624
- 13
- 43
- 60
3
votes
0 answers
importing imdb data by imdbpy still is not finished after 20 hours
I am trying to import imdb's data using IMDbPY which I downloaded from this link:
https://bitbucket.org/alberanid/imdbpy
The problem is that I ran imdbpy2sql yesterday and still after 21 hours it is not finished!
and also it has a lot of warnings…
user1557901
3
votes
1 answer
Can't access the SQL database
I've installed IMDbPY and made a database via the IMDb files and imdb2py script. Now I'm not able to use that database in my script. When I try to use the databse, I get the following errors:
>>> from imdb import IMDb
>>> i = IMDb('sql',…

rajat404
- 73
- 1
- 7