# http.py, by chaynes@indiana.edu import urllib def get(url): '''Reads and returns as a string the response for url of the form http://HOST[:PORT][/QUERY]. PORT defaults to 80, and QUERY defaults to empty.''' while True: connection = urllib.FancyURLopener({}).open(url) text = connection.read() connection.close() if text.count('