osu! time tracker is a tool that allows you to track the amount of time you spend playing beatmaps in osu!. It utilizes the osu! API to retrieve information about your recent plays and the beatmaps you played.
The program runs in an infinite loop, checking for new plays every 2 seconds. If a new play is detected, it retrieves the beatmap information and calculates the time spent playing. If the play was a full completion of the beatmap, it adds the total length of the beatmap to the total time spent playing. If the play was a failure, it parses the beatmap file to find the amount of time spent on the beatmap.
- Obtain an osu! API key from
https://osu.ppy.sh/p/api/
. - Rename the
sample.config.py
file toconfig.py
and replace the placeholders in the file with your osu! API key, osu! username, and desired osu! game mode. - Install the required packages from the
requirements.txt
file usingpip install -r requirements.txt
. - Run the
main.py
file to start the time tracker.python main.py