This is a Movie Recommender System built using Streamlit for the frontend and Google Colab for data preprocessing. The system suggests movies based on a selected title and displays movie posters using The Movie Database (TMDb) API.
- Recommends 5 similar movies based on the selected movie.
- Fetches and displays movie posters using TMDb API.
- Uses precomputed similarity scores for recommendations.
- Simple and interactive Streamlit UI.
- Python (Main programming language)
- Pandas (Data handling)
- Scikit-learn (Similarity computations)
- Pickle (Storing precomputed data)
- Streamlit (Web UI)
- Google Colab (Data preprocessing)
- Requests (Fetching data from TMDb API)
git clone https://github.com/your-username/movie-recommender.git
cd movie-recommender
pip install streamlit pandas requests scikit-learn
- Ensure
movie_dict.pkl
andsimilarity.pkl
are present in the project directory. These files contain movie data and precomputed similarity scores.
streamlit run app.py
- Movie data is processed and stored in
movie_dict.pkl
. - Similarity scores between movies are computed and saved in
similarity.pkl
. - Preprocessed files are downloaded and used in the Streamlit app.
- Uses cosine similarity on movie metadata to find similar movies.
- The top 5 most similar movies are recommended.
- The
fetch_poster(movie_id)
function retrieves movie posters using the TMDb API. - Posters are displayed along with movie names in the Streamlit UI.
- Select a movie from the dropdown.
- Click 'Give recommendations'.
- View the recommended movies and posters.
- Add hybrid filtering (content + collaborative recommendations).
- Implement user-based recommendations.
- Improve UI design and make it more interactive.
This project is open-source and available under the MIT License.