python program that scraps imdb.com and stores data into mysql db
All the movies/series in imdb.com are accessible from url
http://www.imdb.com/title/tt[movie id]/
witch starts from 0000001 and ends 9999999(!some of them are invalid,not taken yet)
also a relationship between higher id and year of movie/series exists!
And all the actors are accessible from url:
http://www.imdb.com/name/nm[actor id]/
by incrementing movie id we get all movies,
and from movies we get the actors, from every movie casts.
Tv shows and series are also as movies.
show it goes like this series->seasons->episodes.
plot,actors bio,photo urls,genres,episodes titles are included in the scraping proccess.
Mysql Db Setup
Edit the conf.py for user mysql credentials.(be sure to have database creation privileges)
Run init_create_db_schema.py OR init_create_db_schema_with_indexes_references.py.
It will create the database and all its tables needed.
The difference between this two is tha the init_create_db_schema_with_indexes_references.py,
will create also indexes,references,keys,constraints,
while the other create_db_schema.py will create only the databas+tables.
Note for(init_create_db_schema_with_indexes_references.py) a lot amount of data the
database will become slow for updates/new inserts ,and will geting slower as the program runs,
and the data are geting even more.
the mysql workbench schema -> https://github.com/avraampiperidis/imdb_pyscraper/blob/master/workbench_schema.mwb?raw=true
just run imdbmain.py
Configuration ----- conf.py contains some user options.
mysql connection credentials.
imdb scrap options.