This program is for querying netflix shows and staff of the show.
- Create sqlite database from schema
sqlite3 shows.db < db.sql
- Import the data into database.
sqlite3 shows.db
.mode csv
.import data/netflix_titles.csv titles
.import data/netflix_staffs.csv staffs
- Start virtual environment.
python3 -m venv venv
source bin/env/activate
- Install requirement.
pip install -r requirement.txt
- Create
.env
file in the root directory with the following.
DATABASE_URL = "sqlite:///shows.db"
- Run using
python3 main.py