Example #1
0
 def closed(self, reason):
     Proxy.remove_invalid()
     print(Proxy.all_valid())
Example #2
0
 def __init__(self, proxy_default='127.0.0.1'):
     self.proxy_ips = Proxy.all_valid()
     if not self.proxy_ips:
         proxy_ip = settings.get('HTTP_PROXY', proxy_default)
         self.proxy_ips = [proxy_ip]