0% found this document useful (0 votes)
25 views2 pages

A Py

Uploaded by

bertsaerens558
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

A Py

Uploaded by

bertsaerens558
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

import requests

from requests.auth import HTTPProxyAuth


import time
import threading

def check_proxy(proxy, proxy_user, proxy_pass):


proxy_dict = {
"http": f"http://{proxy_user}:{proxy_pass}@{proxy}",
"https": f"http://{proxy_user}:{proxy_pass}@{proxy}"
}
try:
start_time = time.time()
response = requests.get("https://www.paypal.com/signin/?returnUri=https%3A
%2F%2Fwww.paypal.com%2Fverify", proxies=proxy_dict, timeout=5)
end_time = time.time()
response_time = end_time - start_time
if response.status_code == 200:
print(f"Proxy {proxy} is working. Response Time: {response_time:.2f}
seconds")
else:
print(f"Proxy {proxy} failed with status code: {response.status_code}")
except requests.exceptions.RequestException as e:
print(f"Proxy {proxy} encountered an error: {e}")

def main(proxies, proxy_user, proxy_pass):


threads = []
for proxy in proxies:
thread = threading.Thread(target=check_proxy, args=(proxy, proxy_user,
proxy_pass))
threads.append(thread)
thread.start()

for thread in threads:


thread.join()

if __name__ == "__main__":
proxies = [
"156.253.167.150:3129", "156.249.138.227:3129", "154.214.1.35:3129",
"156.233.90.222:3129", "156.242.39.112:3129",
"156.228.107.2:3129", "156.249.63.20:3129", "156.228.111.6:3129",
"156.233.94.254:3129", "156.242.39.157:3129",
"154.213.193.240:3129", "154.213.164.173:3129", "156.253.173.74:3129",
"154.213.203.253:3129", "156.242.38.161:3129",
"156.253.170.233:3129", "154.213.198.27:3129", "154.213.164.159:3129",
"156.253.171.38:3129", "156.233.72.123:3129",
"156.228.82.1:3129", "45.202.77.74:3129", "156.233.94.142:3129",
"156.228.105.0:3129", "156.228.119.156:3129",
"156.242.40.60:3129", "154.213.162.236:3129", "156.228.125.227:3129",
"154.213.163.244:3129", "156.253.178.224:3129",
"156.249.137.137:3129", "156.242.39.168:3129", "156.228.113.41:3129",
"156.253.165.114:3129", "156.242.45.156:3129",
"156.228.89.249:3129", "156.228.82.145:3129", "156.249.59.51:3129",
"156.228.83.210:3129", "156.228.102.115:3129",
"156.228.110.238:3129", "156.228.99.109:3129", "156.228.119.117:3129",
"156.233.88.230:3129", "156.242.36.39:3129",
"156.253.171.209:3129", "156.228.183.71:3129", "156.242.35.120:3129",
"156.228.174.119:3129", "156.242.44.237:3129",
"156.228.92.134:3129", "156.253.174.81:3129", "156.233.84.61:3129",
"156.242.46.75:3129", "156.228.174.191:3129",
"156.253.172.167:3129", "156.228.190.242:3129", "156.249.61.132:3129",
"156.249.62.214:3129", "156.249.60.238:3129",
"156.233.72.150:3129", "154.213.202.87:3129", "156.242.37.106:3129",
"156.228.115.250:3129", "156.228.175.86:3129",
"154.213.194.67:3129", "156.253.169.99:3129", "156.233.85.31:3129",
"154.94.12.211:3129", "154.214.1.150:3129",
"156.228.178.33:3129", "156.228.79.94:3129", "156.228.77.166:3129",
"156.233.91.95:3129", "156.228.97.227:3129",
"156.249.57.113:3129", "156.233.84.74:3129", "154.94.14.184:3129",
"154.213.163.58:3129", "156.228.125.83:3129",
"156.228.88.59:3129", "156.249.62.155:3129", "156.233.75.206:3129",
"156.228.77.186:3129", "156.228.175.57:3129",
"156.253.173.138:3129", "156.228.92.203:3129", "156.228.181.88:3129",
"156.228.113.226:3129", "156.228.180.11:3129",
"156.233.92.228:3129", "156.228.124.4:3129", "156.228.82.110:3129",
"156.228.101.18:3129", "156.242.37.103:3129",
"156.253.178.18:3129", "156.228.175.141:3129", "156.228.125.219:3129",
"154.213.194.120:3129", "156.228.115.89:3129"
]
proxy_user = "[email protected]"
proxy_pass = "Golf9898*"

main(proxies, proxy_user, proxy_pass)

You might also like