A python flask app that generates random netflix movie and show recommendations, with it's details listed for each title, that a user can swipe through and watch with the click of a button.
Always wanted to work with a python web framework and so here I am implementing something basic with flask and python to get started.
- Install Flask
$ pip install flask
- (Option) Install virtualenv to manage dependencies (only needed for Python 2 uesrs):
$ pip install virtualenv # only needed for Python 2
- Obtain an API Key for OMDB, and add to a
config.py
file using the following format:If you are ever adding your own code to GitHub, make sure thisapi_key = "YOUR_KEY"
config.py
file is listed under a.gitignore
file so it doesn't accidently get published to GitHub! - Download the CSV linked in this Kaggle dataset and name the file
catalog.csv
. This will store the bulk of our data.
$ python main.py
Once the Flask app is running, navigate to the localhost
link provided:
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
- Open Movie Database - Movie data API to fetch movie poster links and IMDB scores
- Kaggle Netflix Dataset - Comprehensive dataset with many Netflix movies/tv shows and their metadata
- Flask Starter Code - A place to get started with Flask code
- Flask Starter Guide - A great starter guide on how to learn Flask
- Flask Tutorial - A more in-depth tutorial on Flask
- About .gitignore and config giles - A step-by-step guide on how to hide your API keys
This project is licensed under the MIT License.