Welcome to the Movie Recommender System! This project uses content-based filtering to suggest movies similar to the ones you love.
- 📊 Utilizes TMDB dataset for comprehensive movie information
- 🔍 Content-based recommendation using cosine similarity
- 🖼️ Displays movie posters fetched from IMDb
- 👥 Shows top cast members for each recommended movie
- 🚀 Built with Streamlit for a smooth user interface
- Python 3.9+
- Streamlit
- Pandas
- Scikit-learn
- IMDbPY
This project uses the TMDB 5000 Movie Dataset from Kaggle. To get started:
-
Download the following files from Kaggle TMDB 5000 Movie Dataset:
tmdb_5000_credits.csv
tmdb_5000_movies.csv
-
Place these files in your project directory.
-
Use Jupyter Notebook to open and process the data. You can start with the provided
Untitled.ipynb
notebook or create a new one.
In your Jupyter Notebook, you can use the following code to load the data:
import pandas as pd
# Load the movies data
movies_df = pd.read_csv('tmdb_5000_movies.csv')
# Load the credits data
credits_df = pd.read_csv('tmdb_5000_credits.csv')
# Merge the dataframes if needed
merged_df = movies_df.merge(credits_df, on='id')
# Now you can start processing and analyzing the data
Make sure to explore the data, handle any missing values, and perform necessary preprocessing steps before building your recommendation system.
-
Clone the repository:
git clone https://github.com/Ashutoshdas-dev/Movie-Recommender-System cd movie-recommender-system
-
Install the required packages:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
- Select a movie from the dropdown menu.
- Click "Show Recommendation" to get similar movie suggestions.
- Browse through the recommended movies, complete with posters and cast information.
app.py
: Main Streamlit applicationmovie_list.pkl
: Preprocessed movie datasimilarity.pkl
: Precomputed similarity matrixcredit_cast.pkl
: Cast information for movies
Contributions, issues, and feature requests are welcome! Feel free to check [issues page] https://github.com/Ashutoshdas-dev/Movie-Recommender-System.
This project is MIT licensed.
- TMDB for the movie dataset
- IMDb for movie posters and additional information
- Streamlit for the awesome web app framework
Made with ❤️ by Ashutosh