In addition to querying the IMDB APIs, you also have the option to run a local
database setup, which allows for local queries. The following steps describe
how to run such a setup on a Debian system:


1. sudo apt-get install postgresql python3-sqlalchemy

2. Download the datasets from https://datasets.imdbws.com/

3. Create a database user and the database:

   su -s /bin/bash postgres
   createuser -P -s -e imdbdb
   -> Password "imdbpw"
   createdb imdb

4. Import the datasets:

   s32imdbpy.py <pathtodatasets> postgres://imdbdb:imdbpw@localhost/imdb

Once imported and if Postgres is running, you can connect from your scripts
via imdb.IMDb('s3', 'postgres://imdbdb:imdbpw@localhost/imdb')
