#!/usr/bin/python -- import cgi import cgitb; cgitb.enable() import sys sys.path.append("/home/thomas/public_html/global") import os import re from xml.dom.minidom import parseString from urllib2 import build_opener import random try: from xml.etree import ElementTree except: import ElementTree print "Content-type: text/html; charset=utf-8" print print """
'T was a dark and stormy night, and """ + atomauthor + """ said to his friends, \"Gather round, and I'll tell ye a tale.\" So the listeners gathered round, as the blogger started to speak...
""" atomentries = atomxml.findall(ns + "entry") atomentry = random.choice(atomentries) print "\n" + atomentry.findtext(ns + "content").encode('utf-8') + "\n\n" print " \n