| IMDB movies data {ggplot2} | R Documentation |
The internet movie database, http://imdb.com/, is a website devoted to collecting movie data supplied by studios and fans. It claims to be the biggest movie database on the web and is run by amazon. More about information imdb.com can be found online, http://imdb.com/help/show_leaf?about, including information about the data collection process, http://imdb.com/help/show_leaf?infosource.
IMDB makes their raw data available at http://uk.imdb.com/interfaces/. Unfortunately, the data is divided into many text files and the format of each file differs slightly. To create one data file containing all the desired information I wrote a script in the ruby to extract the relevent information and store in a database. This data was then exported into csv for easy import into many programs.
The following text files were downloaded and used:
business.list. Total budget
genres.list. Genres that a movie belongs to (eg. comedy and action)
movies.list. Master list of all movie titles with year of production.
mpaa-ratings-reasons.list. MPAA ratings.
ratings.list. IMDB fan ratings.
running-times.list. Movie length in minutes.
Movies were selected for inclusion if they had a known length and had been rated by at least one imdb user. The csv file contains the following fields:
title. Title of the movie.
year. Year of release.
budget. Total budget (if known) in US dollars
length. Length in minutes.
rating. Average IMDB user rating.
votes. Number of IMDB users who rated this movie.
r1-10. Multiplying by ten gives percentile (to nearest 10%) of users who rated this movie a 1.
mpaa. MPAA rating.
action, animation, comedy, drama, documentary, romance, short. Binary variables representing if movie was classified as belonging to that genre.
data(movies)
A data frame with 28819 rows and 24 variables