[Pythonmac-SIG] 2.0 final installer available - please test

tom smith tom@othermedia.com
Mon, 23 Oct 2000 14:55:57 +0100


I'm trying to get a web page and found that most of the time I only get a
chuck of the page.... I need to use a repeat loop but don't know how, this
code never comes back...

import urllib
the_url = 
'http://www.wwevents.com/eventdisplay.asp?MONTH=11&YEAR=2000&COUNTRYNO=112'

u = urllib.urlopen(the_url)

newdata = ""

while data != 0:
    
    data = u.read()
    newdata = newdata + data
    print "."
    
print newdata

...any ideas?

thanks

tom