#!/usr/bin/env python import sys, os, re, glob r_title = re.compile(r'
Articles from antiquity on the matter of the ignis fatuus:
""" % (style, base, base, base, base, base, base) files = [] for name in glob.glob('*[0-9].html'): f = open(name) title, heading = '?', '?' for line in f: t = r_title.search(line) if t: title = t.group(1) else: h = r_heading.search(line) if h: heading = h.group(1) files.append((title, heading, name[:-5])) print 'All of the quoted content in these articles is in the public domain, but since they took many hours to transcribe please credit this site if you use them anywhere.
Sean B. Palmer