A Flask app that generates random movie recommendations, with details listed for each title, that a user can swipe through and watch with the click of a button.
📸YouTube Tutorial: https://youtu.be/HZHOhf8EXXc
Since I now have a lot more free time on my hands, I’ve been perusing Netflix more than usual. Despite their vast library, I can never find something to watch, and I don't think I'm alone. So, I wanted to make something that generates completely random recommendations, but still gives the user some information about the title before they watch. So, if someone is stuck in a movie rut, this app can help them branch out and try something new! 🎞
-
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.pyfile using the following format:api_key = "YOUR_KEY"If you are ever adding your own code to GitHub, make sure this
config.pyfile is listed under a.gitignorefile 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 - see the LICENSE.md file for details.
