Skip to content

djcaesar9114/actor-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actor connection

actor-connection

What is it?

"Actor connection" is an app allowing you to look for connections between actors depending on the movies they played in. For example:

  • Jim Carrey and Renée Zellweger are connected through 1 movie (Me, Myself and Irene);
  • Jim Carrey and Hugh Grant are connected through 2 movies (you get from Jim Carrey to Renée Zellweger with "My, Myself and Irene" and from Renée Zellweger to Hugh Grant with "Bridget Jones", because Jim Carrey and Hugh Grant have never played together).

It's completely useless, and will answer the questions you've never asked yourself.

Installation

Configure the key

The application uses the API from "The Movie DB", so you have to get a key here: https://developers.themoviedb.org/3/getting-started/introduction

Then, in order to allow the application to contact TMDB APIs, you have to put in the root folder a file named cles.key, in which you write your keys like this:

var keys = {
  v3: 'xxx',
  v4: 'xxx'
}
exports.keys = keys;

Get the app working

Simply run npm i to install all the required modules. Then launch node index.js and your app should be accessible by your browser on the address http://localhost:9114.

How to use it?

You have to select 2 actors, change the parameters or not, then click on the button to search the connection.

Actor search

To select the actors, try to enter their names directly. If the app doesn't find the actor you're looking for, you can search by ID if the actor has a profile on a social media or a IMDB entry.

Actor selection

Parameters

You can modify the way the algorithm is working:

  • Maximum number of movies connecting the actors: if the algorithm doesn't find a connection shorter than the number you put, you won't get any result (default: 3);
  • Movies' average vote: only the movies having an average vote (on TMDB) in this range will be considered (default: between 60% and 100%);
  • Movies released between: only the movies released between these dates will be considered (defaut: last 20 years)
  • Maximum number of actors for each movie, in the order of casting: number of actors by movie to be considered. (defaut: 10)
  • Maximum number of movies for each actor: number of movies by actor to be considered. (defaut: 15 most recent)

Parameters

Connection search

Click on the button and voilà!

Connection search

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published