GithubHelp home page GithubHelp logo

sjlu / popular-movies Goto Github PK

View Code? Open in Web Editor NEW
344.0 11.0 18.0 1.92 MB

Tries to create a list of popular movies based on a series of heuristics

Home Page: https://popular-movies-data.stevenlu.com/movies.json

License: MIT License

JavaScript 88.39% Shell 0.50% HTML 11.11%
movies heuristics

popular-movies's Introduction

popular-movies

This tool makes a best guess at what popular movies are based on a series of heuristics from multiple websites. This then returns a list of movies with their posters and IMDB ID.

Popular movies are based on some general rules:

  • Rating greater than the general sentiment of movies currently out
  • Released less than a year ago
  • At least 3 weeks old to generate a "stable" rating
  • Does not consider tastes, categories or genres of movies

Usage

⚠️ The URL has changed from https://s3.amazonaws.com/popular-movies/ to https://popular-movies-data.stevenlu.com/ as of September 11, 2023. Access via S3 using TLS 1.0 or 1.1 will be deprecated by AWS on December 31, 2023. Access via S3 will be completely deprecated January 1, 2025.

You can poll the following JSON file for a list of movies.

https://popular-movies-data.stevenlu.com/movies.json
  • This file is regenerated nightly so it is recommended that you only poll this file once per day
  • It is recommended that you take a snapshot of this list and not remove based on the list no longer displaying a particular movie
  • Subject to fair use; excessive usage will be rate limited

There are also several other variations of the main file:

File Description
movies-metacritic-min50.json Movies with a minimum score of 50 on Metacritic
movies-metacritic-min60.json Movies with a minimum score of 60 on Metacritic
movies-metacritic-min70.json Movies with a minimum score of 70 on Metacritic
movies-metacritic-min80.json Movies with a minimum score of 80 on Metacritic
movies-imdb-min5.json Movies with a minimum score of 5 on IMDB
movies-imdb-min6.json Movies with a minimum score of 6 on IMDB
movies-imdb-min7.json Movies with a minimum score of 7 on IMDB
movies-imdb-min8.json Movies with a minimum score of 8 on IMDB
movies-rottentomatoes-min50.json Movies with a minimum score of 50 on Rotten Tomatoes
movies-rottentomatoes-min60.json Movies with a minimum score of 60 on Rotten Tomatoes
movies-rottentomatoes-min70.json Movies with a minimum score of 70 on Rotten Tomatoes
movies-rottentomatoes-min80.json Movies with a minimum score of 80 on Rotten Tomatoes

If you're looking for historical files, you can amend a date to the main file like so:

https://popular-movies-data.stevenlu.com/movies-20191202.json

This file is only available from December 2, 2019 onwards.

Develop

  • Make sure you are running Node.js and a local instance of Redis

  • If you want to run it locally you can clone this repository and add a .env file which includes the following lines

    TMDB_KEY=
    
  • Then run npm test and you should see an output of movies showing on your console and the grade it's gotten

License

MIT

popular-movies's People

Contributors

dependabot[bot] avatar jamiew avatar sjlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

popular-movies's Issues

Feature Request: streaming providers

This list seems to miss the big movies from the streaming providers like Disney +, Hulu, Netflix, Apple+, and Prime, would love to get these added so they could auto-download when they come out

Curious about the "better than most" criteria

Hi, I'm curious about the criteria "Rating greater than the general sentiment of movies currently out". What sites do you pull the rating from, and what rating number is the minimum?

I ask because I find that metacritic often gives a subpar rating to my beloved action movies (like many Marvel films) and frequently ranks movies high that were praised by critics but panned by audience. So your metacritic ratings lists (60,70,80,90) are likely to be a poor match for me. Conversely, I tend to take note of IMDB movies that score higher than 8, and I suspect a similar score on TMDB would be more aligned with movies I would like to catch.

Expand selection

Hi,

Would it be possible to expand the movie list with even more popular movies? I'd love to be able to see top 20 most popular movies e.g. :)

Thank you for the great service!

popular-series for TV shows?

I know Sonarr doesn’t currently support lists like Radarr does, but it still would be useful to see which shows are the most popular using your algorithm instead of browsing IMDb or Trakt.

Could something like this be implemented?

A Database Error Occurred

The website: http://movies.stevenlu.com/index.php/api gives an error:
Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3

SELECT * FROM (movies) WHERE tmdb_id IN ()

Filename: /home/sjlu/public_html/movies.stevenlu.com/models/movies_model.php

Line Number: 44

Request for formula proposals

The repo currently works by pulling in popular rating sites such as IMDB, Metacritic and Rotten Tomatoes for scores and ranking. The current algorithm currently only takes those rank orders and mixes them for a minimum score and position on those lists. There's currently zero math involved.

From a mathematical standpoint, it has proven difficult to filter outliers. A good example of this is Rambo: Last Blood has 23,428 votes on IMDB (higher than Hustlers), yet it has a rating of 26 on Metacritic. A point score system was considered but never proved fruitful.

For whoever has time, I'm open to suggestions on improving the formula. Please use this file
dump.csv.zip for experimentation.

Questionable recommendation

As of now, your algorithm is suggesting "Just Getting Started" which is currently scoring 3.8/10 on IMDb, 5% on Rotten Tomatoes and 21/100 on Metacritic.

It's a great idea but I was wondering if such a stinker should be making that list?

The list is empty

I have tried to check your list and it is completely empty. Is there some error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.