irc日志文件的html格式化程序
interstat的Python项目详细描述
IRC日志文件的HTML格式化程序。 目前,只支持Omnipresence使用的格式;查找 interstat.formats了解如何添加更多内容。
安装时使用:
$ pip install interstat
然后运行:
$ interstat LOGFILE HTMLFILE
如果要更改生成的HTML或CSS,请复制 interstat/templates要覆盖的目录,将 更改,然后运行:
$ interstat --template-dir my-templates/ LOGFILE HTMLFILE
有关更多选项,请尝试:
$ interstat --help
Interstat还提供了一个PythonAPI,以防更多的事情发生:
>>> import interstat >>> # Convert an entire log file: >>> interstat.file_as_html(open('irc.log'), 'omnipresence') >>> # Or just some text with embedded mIRC formatting codes: >>> interstat.line_as_html('\x02Bold\x02 and \x1Funderlined\x1F, oh my!')
在Interstat’s GitHub project page上报告错误并发出功能请求。