I\'m trying this simple code, but the damn break doesn\'t work... what is wrong?
while True: for proxy in proxylist: try: h = urllib.urlo
You just break out of for loop -- not while loop:
for
while
running = True while running: for proxy in proxylist: try: h = urllib.urlopen(website, proxies = {'http': proxy}).readlines() print 'worked %s' % proxy running = False except: print 'error %s' % proxy print 'done'