Weblog statistics¶
I had some fun last night whipping up some statistics for my weblog.
I’ve got some plain python code that takes a month/date/year directory
structure, reads all the files in there and creates restructuredtext index.txt
pages in every directory that list the files in there. That’s what turns into
all those overview pages, for instance for March 2007 or for tag pages like
for the Sorrento sprint in 2007.
That very same piece of code is what I use to make the statistics. Reading
the weblog directory results in some nested Year, Month and Day objects, which
I can of course call len() on. Coupled with a bit of code to generate
google chart API URLs, I got pretty
results pretty quick. See http://reinout.vanrees.org/weblog/statistics.html
. Here’s an example: