PranavKapoor28 / Movie-recommender-

Movie recommender repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movie-recommender-

Movie recommender repo

This is a project created by me and my project partner that will help you recommend movies. Content Based Recommender Systems recommends movies similar to the movie user likes and analyses the sentiments on the reviews given by the user for that movie.

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.

Don't worry if the movie that you are looking for is not auto-suggested. Just type the movie name and click on "enter". You will be good to go eventhough if you made some typo errors.

  1. Install from requirements ( pip install -r requirements.txt)
  2. Clone this repository in your local system.
  3. Replace YOUR_API_KEY in the static/recommend.js file.
  4. Open the command prompt from your project directory and run the command python main.py.
  5. Go to your browser and type http://127.0.0.1:5000/ in the address bar.
  6. Hurray! That's it.

Use powershell-

  1. Click shift+rightclick
  2. open opwershell window here
  3. pip install -r requirements.txt
  4. code . (For visual studio)
  5. python main.py
  6. goto localhost (127.0.0.1:5000)

Sources of the datasets

  1. IMDB 5000 Movie Dataset
  2. The Movies Dataset
  3. List of movies in 2018
  4. List of movies in 2019
  5. List of movies in 2020

Similarity Score :

How does it decide which item is most similar to the item user likes? Here we use the similarity scores.

It is a numerical value ranges between zero to one which helps to determine how much two items are similar to each other on a scale of zero to one. This similarity score is obtained measuring the similarity between the text details of both of the items. So, similarity score is the measure of similarity between given text details of two items. This can be done by cosine-similarity.

How Cosine Similarity works?

Cosine similarity is a metric used to measure how similar the documents are irrespective of their size. Mathematically, it measures the cosine of the angle between two vectors projected in a multi-dimensional space. The cosine similarity is advantageous because even if the two similar documents are far apart by the Euclidean distance (due to the size of the document), chances are they may still be oriented closer together. The smaller the angle, higher the cosine similarity.

image

How to get the API key?

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.

The original project could not have been completed without the help of PranavKapoor28 https://github.com/kishan0725

About

Movie recommender repo


Languages

Language:HTML 95.4%Language:Jupyter Notebook 1.8%Language:CSS 1.4%Language:JavaScript 0.8%Language:SCSS 0.7%Language:Python 0.1%