This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # A script to parse irssi log files and put URLs into postgresql | |
| # supports two codecs, utf-8 and iso-8859-1. | |
| # supports norwegian and us local for day changed messages | |
| # author: xt <xt@bash.no> | |
| import codecs | |
| import sys | |
| import psycopg2 | |
| import re |