https://github.com/isxander/modrinthanalytics
Collect and view analytics for Modrinth
https://github.com/isxander/modrinthanalytics
Last synced: 8 months ago
JSON representation
Collect and view analytics for Modrinth
- Host: GitHub
- URL: https://github.com/isxander/modrinthanalytics
- Owner: isXander
- Created: 2022-08-07T09:45:37.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-07T16:48:51.000Z (almost 4 years ago)
- Last Synced: 2025-02-02T06:51:11.114Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Modrinth Analytics
CLI application to collect and view analytics for any modrinth user.
## Collecting analytic data
Currently, there is no way to automatically collect data, you have to manually collect
every day, every hour, whatever you want. (though you could create a systemd service on linux)
```sh
./mranalytics.py --token yourmodrinthtoken collect --user slug_or_id --db path_to_json (optional)
```
This automatically gathers downloads for all the user's projects and adds an entry to the JSON DB.
You can do this whenever you want, the graphing function automatically filters results to fit the timescale.
## Generating graphs
When you have enough data, you can then create a graph.
```shell
./mranalytics.py --token yourmodrinthtoken graph --time hourly,daily,weekly,monthly,annually (default daily) --user slug_or_id_you_collected --db path_to_json (optional)
```