Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Ted Leung on the air: Open Source, Java, Python, and ...
Fri, 08 Jul 2005
Stats2RSS scripts
[22:06] |
[computers/internet/microcontent] |
# |
TB |
F |
G |
0 Comments |
A few people have asked if I could post the Python scripts that I am using to generate RSS feeds for system statistics.
Here they are. In addition to Python, you need eGenix's mxTidy package, as well as the Python wrappers for libxml2. There are also a few hardcoded paths in the scripts which you will need to change to match your installations of awstats, mrtg, and so forth. After you have done this, you can subscribe to the scripts from NetNewsWire (the awstats script allows you to pass the awstats configuration as a parameter).
These scripts fall into the quick and dirty hack category. They work well enough for me. If you use them and improve them, I'd appreciate a note with your changes.
You can subscribe to an RSS feed of the comments for this blog:
Add a comment here:
You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
<a href>
, <em>
, <i>
, <b>
, <blockquote>
, <br/>
, <p>
, <code>
, <pre>
, <cite>
, <sub>
and <sup>
.You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk