traffic.py

I wrote a pretty simple python script for processing molly-brown access logs and giving site statistics. It can be easily modified to handle any other types of access logs, just change the regex to extract the date, path, code and ip. I'll be adding more support, things like regex based ignore lists, configurable ranges, etc. But for the moment you can see:

Now with histograms!

Pull the code, copy to your cgi-bin and modify the parameters in the script. Pretty simple install.

git clone https://sh0.xyz/git/gemini/traffic.git

For an example, check out my site's stats:

=> Traffic Stats at gemini.sh0.xyz

Proxy Information
Original URL
gemini://gemini.sh0.xyz/development/traffic.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
562.411201 milliseconds
Gemini-to-HTML Time
0.257289 milliseconds

This content has been proxied by September (ba2dc).