CineVerse is a movie recommendation web app built with Python and Streamlit. It uses precomputed movie similarity data to recommend five movies based on a title selected by the user.
- Movie recommendations: Get five similar movies based on the selected movie.
- Movie details: View posters, release dates, ratings, descriptions, and directors.
- Trailer links: Open available movie trailers on YouTube.
- IMDb links: Open the movie's IMDb page when an IMDb ID is available.
- Trending movies: See trending movies in the sidebar.
- Feeling Lucky: Pick a random movie from the dataset.
- Mood selector: Choose a mood from Adventure, Happy, Thrilling, Romantic, or Random.
- Dark mode toggle: Switch the app's page styling between dark and light themes.
- Python
- Streamlit
- Pandas
- Requests
- Pickle
- TMDB API
The application expects these files in the project directory:
File Purpose
app.py Main Streamlit application
movie_dict.pkl Serialized movie dataset used to
build the movie DataFrame
The .pkl files are required to run the application. They are loaded
when the app starts.
git clone https://github.com/vipool47/cineverse.git
cd cineversepython -m venv venvLinux / macOS:
source venv/bin/activateWindows:
venv\Scripts\activatepip install streamlit pandas requestsCreate an API key through your TMDB account. and set it in app.py
streamlit run app.pyStreamlit will provide a local URL in the terminal, usually
http://localhost:8501.
- The app loads the movie dataset from
movie_dict.pkl. - The selected movie is located in the dataset.
- Its similarity scores are read from
similarity.pkl. - Movies are sorted by similarity score, excluding the selected movie itself.
- The top five matching movies are displayed.
- Additional movie information is fetched from TMDB.