4 pages=["https://csclub.uwaterloo.ca", "http://mirror.csclub.uwaterloo.ca"]
8 r = urllib2.urlopen(page, timeout=3)
10 if not len(page) > 1000:
11 print "FAIL, didn't have enough data"
13 if not"Computer Science Club" in page:
14 print "FAIL, homepage doesn't mention Computer Science Club"
16 # So read() didn't throw an exception, nor did opening,
17 # and we have enough data, so likely good.
19 except urllib2.URLError as e:
20 print "FAIL, exception ", e