A Content-Based Movie Recommendation System built with Python, Streamlit, and the TMDb API. This web app recommends movies based on their similarity to a selected title using cosine similarity computed from movie metadata.
This app uses content-based filtering to suggest movies similar to the one you select by analyzing:
- 🎞️ Movie overviews
- 🧩 Genres & keywords
- 🧑🎤 Cast and crew
Cosine similarity is calculated on vectorized features to find and rank the most similar titles.
- 🐍 Python
- 📊 Pandas / NumPy
- 🤖 Scikit-learn
- 🌐 Streamlit – for the interactive web interface
- 🎥 TMDb API – for fetching movie posters and metadata
- 🧃 Pickle – for saving and loading processed data & similarity matrix
- 🔍 Select any movie and get top 5 similar recommendations
- 📸 Fetch movie posters and titles via TMDb API
- ⚡ Efficient cosine similarity-based ranking
- 🧑💻 Clean and interactive UI built with Streamlit
--
🔁 Clone the Repository
git clone https://github.com/your-username/movie-recommender-system.git
cd movie-recommender-system🧱 Install Requirements
pip install -r requirements.txtstreamlit run app.py├── app.py # Streamlit app
├── movies.csv # Movie metadata
├── similarity.pkl # Precomputed similarity matrix
├── poster_fetch.py # TMDb API calls for poster images
├── requirements.txt
└── README.mdThis project uses the TMDb API to fetch movie posters.
