Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- check_country = True
- if country == []:
- check_country = False
- for i in response.split('\n'):
- json_proxy = json.loads(i.replace(' ', '').replace('c",', '",'))
- if timeout == 0:
- timeout = 666666
- if timeout >= float(json_proxy["timeout"].replace(',', '.'))*1000:
- for temp_type_proxy in types:
- if json_proxy["type"] == temp_type_proxy:
- if check_country:
- for c in country:
- if json_proxy["country"] == c:
- list_proxies.append(json_proxy["ip"] + ':' + json_proxy["port"])
- else:
- list_proxies.append(json_proxy["ip"] + ':' + json_proxy["port"])
- except:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement