This repository contains the code for the Movie and Song Recommendation project. The project is developed by Harsh, Aditya Jagdale, and Vimal Jayant S. It utilizes the TMDB API and the MusicAPI to generate personalized movie recommendations and provide Spotify album links based on user input.
- Spotify URL Generation: The
songs()
function retrieves the Spotify album URL for a given movie using the MusicAPI. - Movie Information Retrieval: The
movie_info()
function retrieves information about a movie based on user input using the TMDB API. - Similar Movie Recommendation: The
movie_similar()
function recommends similar movies based on a given movie using the TMDB API. - User Interaction: The
main()
function takes user input for a desired movie title and displays the movie information, Spotify album link, and similar movie recommendations.
-
Clone the repository:
git clone https://github.com/your-username/Movie-and-Song-Recommendation.git
-
Install the required dependencies:
pip install tmdbv3api requests
-
Obtain a TMDB API key from https://www.themoviedb.org/.
-
Import the necessary modules into your Python project:
from tmdbv3api import Movie from tmdbv3api import TMDb import requests import json
-
Set the TMDB API key:
tmdb_api_key = 'your-tmdb-api-key' tmdb = TMDb() tmdb.api_key = tmdb_api_key
-
Call the
main()
function to run the program and follow the prompts to input a desired movie title.
Note: Make sure to replace
'your-tmdb-api-key'
with your actual TMDB API key.
- Vimal Jayant S.
- Harsh
- Aditya Jagdale