"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.
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;
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
.
You have to select 2 actors, change the parameters or not, then click on the button to search the connection.
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.
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)
Click on the button and voilà!