Advertisement
Guest User

Untitled

a guest
May 17th, 2019
2,632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     try:
  2.         check_country = True
  3.         if country == []:
  4.             check_country = False
  5.         for i in response.split('\n'):
  6.             json_proxy = json.loads(i.replace(' ', '').replace('c",', '",'))
  7.             if timeout == 0:
  8.                 timeout = 666666
  9.             if timeout >= float(json_proxy["timeout"].replace(',', '.'))*1000:
  10.                 for temp_type_proxy in types:
  11.                     if json_proxy["type"] == temp_type_proxy:
  12.                         if check_country:
  13.                             for c in country:
  14.                                 if json_proxy["country"] == c:
  15.                                     list_proxies.append(json_proxy["ip"] + ':' + json_proxy["port"])
  16.                         else:
  17.                             list_proxies.append(json_proxy["ip"] + ':' + json_proxy["port"])
  18.     except:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement