Trakt all-time-stats without Trakt VIP.
-
- Clone the repository:
git clone https://github.com/Ahmedazim7804/trakt_vip_stats
- Clone the repository:
-
- Change to project directory:
cd trakt_vip_stats
- Change to project directory:
-
- Install the dependencies:
pip install -r requirements.txt
- Install the dependencies:
Basic Usage:
- Populate .env file in repo directory.
username = "your trakt username" trakt_client_id = "your trakt client id" trakt_client_secret = "your trakt client secret" tmdb_api_key = "your tmdb api key"
python main.py run --save
It will authenticate and get all neccessary data from trakt and tmdb api, and then generate all-time-stats.json
Create database.db
with required all data from trakt to database.db
.
usage: TraktVipStats run [-h] [--save] [--log-level {ERROR,INFO,DEBUG,WARNING}] [--print-time]
options:
-h, --help show this help message and exit
--save
--log-level {ERROR,INFO,DEBUG,WARNING}
--print-time
Updates specified data from trakt to database.db
usage: TraktVipStats update [-h] [--save] [--log-level {ERROR,INFO,DEBUG,WARNING}] {movies,tv,ratings,lists}
positional arguments:
{movies,tv,ratings,lists}
options:
-h, --help show this help message and exit
--save
--log-level {ERROR,INFO,DEBUG,WARNING}
Example: Let's say you tracked some new movie in trakt, now you want to update it here then
python main.py update movies --save
Generate the all-time-stats.json
from existing database.db
, equivalent to --save flag.
python main.py save
Start a basic flask server to serve the all-time-stats via basic http api.
Used for app.
usage: TraktVipStats server [-h] [--port PORT] [--debug]
options:
-h, --help show this help message and exit
--port PORT
--debug
Available Endpoints are
/all_time_stats
/first_play
/pfp
/username
/actors
/actresses
/directors
/writers
/trakt/most_watched_shows
/trakt/most_watched_movies
/tv/stats
/tv/plays
/tv/users_top_10
/tv/by_genre
/tv/by_country
/tv/list_progress
/tv/highest_rated
/tv/all_ratings
/movies/stats
/movies/plays
/movies/users_top_10
/movies/by_genre
/movies/by_released_year
/movies/by_country
/movies/list_progress
/movies/highest_rated
/movies/all_ratings
This program only generates all-time-stats equivalent data. To see this data in graphical interface use this app.