Hey Andrew, I have worked with IMDb and IMDbPY before and have some information 
that might be useful.  First off is you need a server to install IMDbPY and you 
can use a free one on Amazon Web Services (AWS) for one full year.

 

 <https://aws.amazon.com> https://aws.amazon.com

 

I used a 64-bit Ubuntu image.  These are the steps I took after getting the AWS 
server setup.

 

Download the IMDb file that you need from the link below into the directory 
/home/ubuntu/imdb-files.  Note that the AWS free tier only allows 30GB of 
storage so I would only download the files you need.  >From what you wrote you 
may only need:

 

genres.list.gz

movies.list.gz

ratings.list.gz

 

 <http://www.imdb.com/interfaces> http://www.imdb.com/interfaces

 

After downloading the files, follow these steps to get your server setup 
(change YOUR-PASSWORD to your password for MySQL).

 

sudo apt-get update

sudo apt-get upgrade

 

sudo apt-get install python-dev

sudo apt-get install lamp-sever^

sudo apt-get install python-pip

sudo apt-get install unzip

sudo easy_install -U SQLOjbect

sudo apt-get install python-mysqldb

sudo apt-get install libxml2-dev

sudo apt-get install libxslt-dev

sudo apt-get install zlib1g-dev

 

pip install IMDbPY

 

mysql -u root -p

CREATE USER 'admin'@'localhost' IDENTIFIED BY 'YOUR-PASSWORD';

CREATE DATABASE imdb CHARACTER SET utf8 COLLATE utf8_unicode_ci;

USE imdb;

GRANT ALL ON imdb.* TO 'admin'@'localhost';

 

cd IMDbPY

imdbpy2sql.py --mysql-force-myisam -d /home/ubuntu/imdb-files/ -u 
mysql://admin:YOUR-PASSWORD@localhost/imdb

 

I did this setup about a 18 months ago and I do believe I captured all the 
steps correctly.  Also as Davide has noted, you probably want to change the 
step above:

 

pip install IMDbPY

 

To use the latest version from GitHub -  <https://github.com/alberanid/imdbpy> 
https://github.com/alberanid/imdbpy - so I think just do this:

 

git clone https://github.com/alberanid/imdbpy.git

 

Hope this helps you with your efforts and good luck!

 

 

From: Andrew Tran [mailto:att...@ucdavis.edu] 
Sent: Friday, February 26, 2016 8:18 PM
To: imdbpy-help@lists.sourceforge.net
Subject: [Imdbpy-help] retrieving all movies and csv file

 

Hi ImdbPy team,

 

I am currently taking information interfaces in college. I was thinking of 
doing a visualization based on a movies' release date, genre, rating, budget, 
and box office. Your API would be perfect for this. I was just wondering how I 
would be able to retrieve every movie in existence or at least all the movies 
in IMDB's database. I saw the link you posted about having to create a server. 
Is there an alternative where I can just download or form csv files?

 

Thank you,

 

Andrew Tran

------------------------------------------------------------------------------
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to