- Web development on top of a machine learning model
- Responsive webpage
- Web Scraping
- Asynchronous requests
- Autocomplete during movie searching.
https://movie-recommend-using-flask.herokuapp.com/
Framework: Flask
API: TMDB
Frontend: HTML, CSS, JavaScript
Others: AJAX, Web Scraping
The source code contains proper comments for understanding
cosine similarity and similarity scores are calculated to check the similarity between movies. Refer this link
This is a content based movie recommendation engine that is built using flask in the backend.
Movie recommender systems are of various types. You can read about them on this link.
A content-based recommender learns a profile of the new user’s interests based on the features present, in objects the user has rated. It’s basically a keyword specific recommender system here keywords are used to describe the items. Thus, in a content-based recommender system the algorithms used are such that it recommends users similar items that the user has liked in the past or is examining currently.
This only contains data till year 2016.
For 2017 data has been picked from here and here
For data of year 2018-19-20, I have done webscraping from Wikipedia.
https://en.wikipedia.org/wiki/List_of_American_films_of_2018
https://en.wikipedia.org/wiki/List_of_American_films_of_2019
https://en.wikipedia.org/wiki/List_of_American_films_of_2020
details include images, genre, title , release date, director, rating https://www.themoviedb.org/documentation/api.
Create an account in https://www.themoviedb.org/, click on the API link from the left hand sidebar in your account settings and fill all the details to apply for API key. If you are asked for the website URL, just give "NA" if you don't have one. You will see the API key in your API sidebar once your request is approved
- Clone this repository locally.
git clone https://github.com/anipnwr7777/movie-recommendation-using-flask
- Install requirements using the command
pip install -r requirements.txt
- Get your API Key.
- Replace 'YOUR_API_KEY' in /static/recommend.js with your API key.
- Open the terminal in your IDE and enter
python main.py
- Open your browser and enter this addres as URL
http://127.0.0.1:5000/
- That's it your recommendation system is up and running.
Contributions are always welcome!