This application provides all the details of the requested movie such as overview, genre, release date, rating, runtime, top cast, reviews, recommended movies, etc.
The details of the movies(title, genre, runtime, rating, poster, etc) are fetched using an API by TMDB, https://www.themoviedb.org/documentation/api, and using the IMDB id of the movie in the API, I did web scraping to get the reviews given by the user in the IMDB site using beautifulsoup4
and performed sentiment analysis on those reviews.
Check out the live demo: https://tmc.kishanlal.dev/
If you can't find the movie you're searching for through auto-suggestions while typing, there's no need to worry. Simply type the name of the movie and press "enter". Even if you make some typos, it should still work fine.
If you're getting invalid request error in your application, kindly go through this issue - #2
Create an account in https://www.themoviedb.org/, click on the API
link from the left hand sidebar in your account settings and fill all the details to apply for API key. If you are asked for the website URL, just give "NA" if you don't have one. You will see the API key in your API
sidebar once your request is approved.
- Clone this repository in your local system.
- Install all the libraries mentioned in the requirements.txt file with the command
pip install -r requirements.txt
. - Replace YOUR_API_KEY at line no. 2 of
static/recommend.js
file. - Open your terminal/command prompt from your project directory and run the
main.py
file by executing the commandpython main.py
. - Go to your browser and type
http://127.0.0.1:5000/
in the address bar. - Hurray! That's it.
- IMDB 5000 Movie Dataset
- The Movies Dataset
- List of movies in 2018
- List of movies in 2019
- List of movies in 2020
Please do ⭐ the repository, if it helped you in anyway.