guenthermi / the-movie-database-import

Script to import data from the The Movie Database to PostgreSQL (Dataset URL: https://www.kaggle.com/rounakbanik/the-movies-dataset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the-movie-database-import

This script to import data from the The Movie Database (Data URL: https://www.kaggle.com/rounakbanik/the-movies-dataset) to a PostgreSQL database. It creates 15 tables containing information about movies, keywords, production companies, production countries, actors as well as credits data.

Run the Skript

In order to run the script you have to download and extract the datset available at https://www.kaggle.com/rounakbanik/the-movies-dataset. The script uses the movies_metadata.csv, credits.csv, keywords.csv and ratings.csv (or ratings_small.csv) file from the dataset.

Then you have to define the database connection information in db_config.json.

Afterwards you can run the loader.py to import the data to your Postgres database

python3 loader.py path/to/your/dataset/folder

About

Script to import data from the The Movie Database to PostgreSQL (Dataset URL: https://www.kaggle.com/rounakbanik/the-movies-dataset

License:MIT License


Languages

Language:Python 100.0%