A Content-Based Recommender System that recommends movies similar to the movie entered by the user and shows basic information about the recommended movies.
- Flask
- HTML & CSS
- JavaScript
- Python
- Tmdbv3API (TMDBSIMPLE)
The recommender system uses a metric called the similarity score to measure how similar movies are to one another. The similarity score is a value that ranges between 0 - 1, the higher the score, the more similar the two movies are. It is the measure of similarity between two text items.
I used the built-in cosine similarity metric in scikit-learn.
I have written a simple step by step documentation on this app which you can read here.
-
Clone this git repository
git clone https://github.com/BBimie/Movie-Recommender-System.git
-
Create a virtual environment in your project folder
cd -filepath-
virtualenv venv
-
Activate virual environment
Mac
source venv/bin/activate
Windows 10
source venv/Scripts/activate
-
Install python packages by running the following command
pip install -r requirements.txt
-
Edit the app.py (lines 16 & 17) to add your TMDB API key
-
Launch the app
python app.py
Create an account in https://www.themoviedb.org/ and login click the "API" link from the left hand sidebar within your account settings page. You will see the API key in your API sidebar once your request is approved.
Take a look at the deployed app here