Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
python3-imdbpy / usr / share / doc / python3-imdbpy
  ..
  examples
  README.Debian.local-DB
  changelog.Debian.gz
  changelog.gz
  copyright
Size: Mime:
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')