Trakt Logging Stats
This personal project communicates with a media logging website's API to fetch and process data, generating yearly statistics and automatically updating my lists on the website.
Trakt Logging Stats
I really like watching TV shows and movies, maybe not so much anymore at the time of writing, but I used to a lot. To keep track of everything that I watch, I use a website called Trakt.tv, which allows its users to log and rate media like TV, movies, and anime.
Over time, I wanted to get more insights into my watching habits, specifically on a yearly basis. I wanted to see how many hours I spent watching media each year, what my most-watched shows were, and other similar stats. While Trakt.tv does offer premium year-in-review summaries, I wanted something more detailed and customisable, so I decided to create my own tool to fetch and process my watching data from Trakt's API.
This project is a series of Python scripts that communicate with the Trakt API to fetch my watching history, process the data to generate various stats (all of which is then locally cached), and finally update my Trakt lists with the cached data. The stats generated include stuff like total hours watched, time spent watching per day, time spent watching each show, and more.
I developed this project solo over the course of a few days, and it was my first experience properly working with APIs and handling large data sets in Python. I learned a lot about making HTTP requests and handling JSON data, all useful knowledge that I still apply in projects today.
Check out the gallery tab to see some of the generated stats.