#!/usr/bin/python import time import re x=(time.localtime()[3]*60)+time.localtime()[4] runs = [line.split('\t') for line in file('61b-out.dat')] pattern = re.compile("\d+|:|\d+") bus = [] due = [] count = 0 first = 0 print "Content-Type: text/html\n\n" print """
""" print "" print "Current time: %s" % time.ctime() # print "
Minutes: %s" % x # print "
Runs: %s" % runs[0] print "
" print "Minutes to outbound 61B arriving" print "
| A | B | C | D | E | F | G |
| Forbes&Stanwix | " print "Forbes&Craft | " print "Forbes&Murray | " print "Forbes&Braddock | " print "Monongahela&Washington | " print "11th&Talbot&Woodlawn | " print "SwissvaleStation | " print "%s | " %dif else: print "" print "" print " |