Script used to generate stats.42l.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
neil ba99c7d5d1 adding element 1 month ago
LICENSE Initial commit 1 month ago
README.md Mise à jour de 'README.md' 1 month ago
gen-indexes.py adding element 1 month ago
index-service.html migrating from stats-tools 1 month ago
index.html migrating from stats-tools 1 month ago
requirements.txt migrating from stats-tools 1 month ago
test.html migrating from stats-tools 1 month ago

README.md

gen-indexes

Script used to generate stats.42l.fr

This script generates index.html files to browse GoAccess reports through a user-friendly interface.

It can be run in a Docker container, but you must install additional packages (pip3 install -r requirements.txt), mainly:

  • Jinja2, the templating engine used to generate the HTML files
  • natsort, to apply a natural ordering on a list.

Mount your reports volume in the /base/ folder (and/or edit the script's constants to your needs).

The templates' design is quite poor and the script doesn't handle errors very well. PRs welcome!