Skip to content

navilg/trakt-year-in-review

Repository files navigation

Year in Review using Trakt

Generate year in review from Trakt history

Requirements

Python 3.12+

Generate Trakt Client ID

If you donot have Trakt client id, You will need to generate it from Trakt.

  1. Login to your account in trakt.tv (Trakt)
  2. Click on your profile (avatar) showing in corner
  3. Click on Settings
  4. Click on "Your API Apps"
  5. provide the details and submit the request.
  6. You will receive client id and client secret. It may take sometime to receive the API keys depending on time taken by Trakt to verify your information.

Steps

  1. Install required python modules
pip install -r requirements.txt
  1. Make your Trakt profile as public from Trakt's account setting (Make it private again after generating year in review)

  2. Create .env file from .env.example file

cp .env.example .env
  1. Update trakt user name, trakt client id and year in .env file

  2. Run below command on full terminal screen

python generate.py
  1. Alternatively, You can also pass trakt user name, year and client id in command line argument
python generate.py user_id 2024 trakt_client_id
  1. Make your Trakt profile as private again from Trakt's account setting.

Screenshots