Another approach would be to just scrape a CS's random (5.75 x 10^30) word haiku generator. ;)
import urllib import libxml2 import random uri = 'http://www.cs.indiana.edu/cgi-bin/haiku' sock = urllib.urlopen(uri) data = sock.read() sock.close() doc = libxml2.htmlParseDoc(data, None) words = [p.content for p in doc.xpathEval('//a')[8:-3]] doc.freeDoc() print random.choice(words) Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list