Skip to content

Instantly share code, notes, and snippets.

@patchkez
patchkez / irssilogparser.py
Created November 13, 2015 11:02 — forked from torhve/irssilogparser.py
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
#!/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