Giter Site home page Giter Site logo

danielgwood / movie-analyser Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 346 KB

Takes a list of films and collates some stats, such as popular genres, actors, directors, eras and ratings and displays it in a neat infographicy style.

CSS 8.92% JavaScript 6.91% PHP 84.17%

movie-analyser's Introduction

movie-analyser

Takes a list of films and collates some stats, such as popular genres, actors, directors, eras and ratings and displays it in a neat infographicy style.

This extends on an earlier experiment, https://github.com/danielgwood/movie-analyser-script.

Demo

Try it out here: http://movie-analyser.com/

Installing

  1. Clone repo
  2. Get an API key for TMDB: http://docs.themoviedb.apiary.io/
  3. Add "apikey.php" at repo root, and define the API_KEY constant in there
  4. At present, the storage mechanism is serialised text files. Make sure the path defined in \lib\MovieAnalyser::$SAVE_DIR is writable by PHP
  5. Set the BASE_URL constant at the top of show.php to whatever URL your installation is

Contributing

I'm particularly interested to see more data/statistics derived (there's a whole load more data in TMDB which I'm not even accessing). Please forgive any code wibbles - I left this project unfinished for a while, and couldn't actually remember what I was doing when I came back to it.

See the official TODO list: https://github.com/danielgwood/movie-analyser/blob/master/TODO.md

License

Go nuts, but please keep the attributions for TMDB, https://github.com/glamorous, and Nikolay Kuchkarov on display. I'd also appreciate it if you let me know what you do!

movie-analyser's People

Contributors

danielgwood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

imclab

movie-analyser's Issues

Movies with years don't work in some cases

Romero's "Dawn of the Dead" was clearly released in 1978, but searching for "Dawn Of The Dead (1978)" doesn't work on Movie Analyser or TMDB's site.

Need to find a better way of doing this.

Enter titles one by one with auto-suggest

Entering many films at once into a text box is only really practical if you already have a list, and are just copy-and-pasting it. For those just trying it out, or creating a list as they go, it's probably more practical to have an auto-suggest feature (which will probably have to work from a text input rather than textarea).

Facebook integration

It'd be neat to integrate with Facebook, so that users with "Movies watched" specified can login to Facebook and automatically search for all of that list.

A proof of concept for this exists in master, but needs hooking up to the interface.

Display list of all movies

Might be fun to display all of the movies in a user's collection at the end. Perhaps in a shelf format.

Titles with question marks don't work with TMDb API

I've noticed in my own efforts with the TMDb API that titles with question marks just don't work; no results are returned.

Given the film "Getting Any? (1994)", the following happens...

Doesn't work with question mark:
http://movie-analyser.com/fetch.php?title=Getting%20Any?%20(1994)&setId=fake

Works without question mark:
http://movie-analyser.com/fetch.php?title=Getting%20Any%20(1994)&setId=fake

So, a hacky workaround is simply to strip question marks. Cheers!

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.