An IMDB report generator API implemented with Flask. It processes the data of an IMDB account and gives you relevant information about it.
POST /movies/picku| Parameter | Type | Description |
|---|---|---|
file |
csv file |
Required. The file with the list of movies you want to pick from |
It returns the total minutes, and in days, hours and minutes.
POST /movies/time| Parameter | Type | Description |
|---|---|---|
file |
csv file |
Required. The file with the list of ratings |
It returns the title of the movies watched, separated by release year.
POST /movies/yreleased| Parameter | Type | Description |
|---|---|---|
file |
csv file |
Required. The file with the list of ratings |
It returns the title of the movies watched, separated by the year you rated it.
POST /movies/yrated| Parameter | Type | Description |
|---|---|---|
file |
csv file |
Required. The file with the list of ratings |
It returns a list of watched genres and how many movies the user has seen from each one, sorted by that value descending. It also works with combination of genres, like "Drama & Thriller".
POST /movies/genre/mw| Parameter | Type | Description |
|---|---|---|
file |
csv file |
Required. The file with the list of ratings |
It returns a list with user's favorite genres, sorted by favoritism descending. It also works with combination of genres, like "Drama & Thriller".
POST /movies/genre/fav| Parameter | Type | Description |
|---|---|---|
file |
csv file |
Required. The file with the list of ratings |
This works by having a value to track how much the user likes a genre, wich is obtained by adding the rate the user has given to a movie and multiplying that for a constant. The following table shows the constants for a given rate.
| Rate | Constant |
|---|---|
1 |
-60 |
2 |
-50 |
3 |
-40 |
4 |
-30 |
5 |
-20 |
6 |
0 |
7 |
20 |
8 |
80 |
9 |
100 |
10 |
200 |