GithubHelp home page GithubHelp logo

sjlu / popular-movies Goto Github PK

View Code? Open in Web Editor NEW
344.0 11.0 16.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

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.