#!/usr/bin/env python2.4
# Simple RSS generation script for unofficial RSS syndication of
# WTF Comics - http://www.wtfcomics.com
#
# Bruce A. Locke (blocke@shivan.org)
# License: Public Domain (Do whatever you want with it)
import re, urllib, string
def check_wtf_comics():
#page = file("wtftest.html").read()
page = urllib.urlopen("http://www.wtfcomics.com/").read()
comic_number = string.split( (re.compile(r"(var.+newest_issues.+=.*\".+\".*;)").split(page, 2)[1]), "\"")[1]
# Each news posting has the following structure (minus \n, \r, \t, and space):
#
# 01/02/03____
# content
rawnews = []
for x in re.compile(r'