Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
301 changes: 301 additions & 0 deletions assets/proxy-list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
5.181.171.134:8085
197.157.219.169:48625
167.172.178.68:44179
89.189.181.161:55855
185.88.37.161:8085
185.88.37.154:8085
5.8.76.232:80
121.1.41.162:111
20.105.253.176:8080
62.75.229.51:5566
85.25.108.234:5566
85.25.208.198:5566
181.36.121.222:999
103.80.1.2:80
177.234.196.187:999
169.57.1.85:8123
157.245.110.145:80
194.5.193.183:80
205.144.61.92:80
185.61.152.137:8080
51.81.80.44:80
47.242.243.195:59394
202.136.165.22:80
103.23.206.170:8080
13.228.47.121:80
149.56.33.210:8089
159.223.87.10:8080
20.151.142.33:7777
103.124.226.61:3127
168.195.97.237:3128
94.228.192.197:8087
5.181.171.177:8085
159.224.243.185:37793
190.210.8.93:8080
107.151.182.247:80
195.91.221.230:55443
202.154.180.53:46717
120.89.90.210:8181
185.88.37.147:8085
117.54.114.98:80
41.65.252.101:1981
177.69.180.171:8080
37.53.83.237:8080
154.159.243.117:8080
177.183.234.110:80
189.201.242.225:999
103.76.151.46:8181
64.185.0.17:8080
103.139.47.250:8080
77.236.243.39:1256
217.60.194.43:8080
84.204.40.154:8080
102.68.134.94:8080
36.95.116.49:8080
150.95.80.71:4000
94.130.244.179:5566
103.38.5.226:81
20.74.239.58:80
183.88.19.9:8080
85.25.119.241:5566
134.119.217.110:1080
173.249.38.220:80
187.217.54.84:80
37.61.222.165:1080
37.238.132.46:80
72.169.67.29:87
47.242.245.107:80
209.250.253.162:59394
5.181.171.154:8085
193.41.88.58:53281
193.34.21.4:55277
186.206.142.211:8118
212.115.232.79:31280
62.75.229.77:5566
38.101.122.186:999
213.6.66.66:48687
157.230.255.209:8888
37.61.222.167:1080
47.253.52.176:80
36.95.201.15:41890
2.179.193.146:80
103.109.59.242:53281
5.202.191.226:80
216.176.187.99:39825
119.18.152.210:3127
139.28.38.229:80
138.201.225.78:80
85.25.117.171:5566
24.217.192.131:57273
216.169.73.65:34679
31.10.2.149:8080
80.48.119.28:8080
36.94.27.124:8080
3.136.59.77:80
165.154.225.106:80
36.55.229.4:4455
103.250.166.17:6666
216.137.184.253:80
123.231.221.243:6969
45.56.84.125:80
167.172.178.193:43807
200.164.65.82:55443
185.108.140.69:8080
197.254.97.248:80
188.72.6.98:37083
5.181.171.144:8085
165.154.92.146:8888
175.100.72.95:57938
217.160.193.210:8118
62.75.229.167:5566
102.68.135.229:8080
45.5.154.42:8080
31.163.192.161:3129
165.16.27.6:1981
36.92.190.115:8080
182.253.70.226:8080
91.204.239.189:8080
206.189.138.27:80
190.145.200.126:53281
68.183.81.71:80
152.200.154.60:999
82.210.8.173:80
54.39.102.233:3128
103.82.147.123:8080
206.189.143.230:80
36.66.206.74:80
77.39.38.31:8080
45.146.106.22:37192
190.120.186.21:999
180.180.170.188:8080
12.218.209.130:53281
181.13.223.228:8080
186.215.68.51:3127
200.114.84.76:8080
134.119.217.109:1080
103.159.46.18:82
58.27.233.34:8080
177.242.148.14:999
180.178.190.70:8080
152.206.139.254:8080
212.90.34.203:8080
200.105.170.214:8080
46.19.100.26:81
131.108.118.27:8080
190.108.200.176:8080
201.220.112.98:999
172.104.48.219:8080
187.251.138.81:3128
181.36.230.242:999
111.90.179.74:8080
217.30.170.98:3128
103.205.183.18:55443
118.70.12.171:53281
131.255.134.144:8080
149.62.177.117:3128
65.20.162.23:41890
186.46.168.44:8080
58.147.186.226:8080
103.147.43.255:8080
200.24.146.68:999
103.160.201.76:8080
41.128.148.78:1981
14.160.29.90:8080
103.145.45.69:55443
202.153.233.228:8080
103.164.116.170:8080
46.209.30.12:8080
41.216.68.254:41890
116.206.243.50:80
181.209.99.218:999
157.230.40.79:8080
45.179.200.73:999
188.43.15.89:8080
103.11.106.219:8181
109.92.222.170:53281
189.193.206.27:8080
185.103.168.70:8080
188.133.152.247:1256
117.2.28.235:55443
103.73.75.69:8080
36.95.34.106:8080
103.197.206.17:8080
168.227.56.104:8080
110.78.141.104:8080
190.63.169.34:53281
82.99.232.18:34415
103.146.185.110:3127
34.229.168.95:8118
151.22.181.213:8080
139.255.101.90:8080
139.5.150.146:3888
181.224.161.200:999
93.180.221.205:8080
5.181.171.168:8085
37.61.222.168:1080
103.149.240.22:8080
85.195.123.196:1080
37.61.222.174:1080
5.181.171.133:8085
187.216.93.20:55443
186.97.156.130:999
193.150.117.85:8000
188.158.220.170:8080
46.18.202.204:8080
88.99.117.147:8888
204.199.113.29:999
103.209.248.86:8080
139.59.254.95:3128
36.89.229.97:59707
45.184.155.254:6969
177.36.5.6:8080
186.96.158.213:999
85.117.56.147:8080
131.161.53.49:999
190.24.113.138:999
186.148.191.226:999
197.254.97.252:80
87.101.5.245:8080
154.236.177.100:1981
47.89.184.214:80
146.56.103.219:80
139.99.237.62:80
80.251.126.242:8080
143.255.142.80:8080
167.99.236.14:80
154.236.168.181:1981
103.156.249.34:8085
85.172.105.158:3128
103.109.2.79:8080
103.147.77.66:3125
41.65.236.54:1981
45.79.77.226:3128
181.47.104.64:8080
47.243.195.76:59394
47.243.230.231:59394
93.188.161.84:80
154.85.35.235:8888
142.11.222.22:80
43.255.113.232:8082
150.109.32.166:80
58.97.72.83:8080
181.169.147.8:3128
200.106.184.13:999
177.22.88.224:3128
203.189.227.249:8080
176.99.12.3:3128
41.57.37.12:8080
157.100.53.110:999
186.96.111.178:999
45.70.15.6:8080
202.180.19.142:3128
85.195.123.197:1080
171.6.77.224:8080
204.155.154.40:8118
152.228.163.151:80
171.241.47.43:8118
47.91.44.217:8000
61.255.239.33:8008
209.97.150.167:8080
191.96.42.80:8080
128.199.202.122:8080
37.61.220.234:1080
158.69.27.94:9300
85.25.226.242:5566
5.188.108.79:80
115.241.197.126:80
45.160.74.1:999
101.255.127.11:8080
8.214.41.50:80
37.232.183.74:53281
80.82.215.6:80
52.169.143.106:8080
119.28.131.149:60080
103.139.66.182:41890
165.22.101.130:8080
151.80.196.163:8010
103.105.125.6:82
222.253.48.253:8080
103.134.98.17:82
190.210.8.90:8080
171.97.115.242:8888
185.204.197.169:8080
200.122.255.42:999
94.75.76.3:8080
196.203.83.249:9090
200.229.229.197:8080
103.166.10.134:8181
85.25.132.27:5566
197.254.97.254:80
85.25.119.113:5566
43.245.95.210:53805
177.55.207.38:8080
103.153.232.1:8080
137.59.0.134:8080
180.250.252.221:8080
20.88.122.67:8080
95.142.223.24:56379
190.60.71.124:80
213.32.75.44:9300
188.65.237.30:50333

38 changes: 38 additions & 0 deletions proxy_checker_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import urllib.request , socket
from pathlib import Path

socket.setdefaulttimeout(180)

# BASE_DIR is gives project location
BASE_DIR = Path(__file__).resolve().parent

# PROXY_LIST is our proxy list based on txt
PROXY_LIST = Path.joinpath(BASE_DIR, "assets/proxy-list.txt")

# Proxy checker
def is_bad_proxy(proxy_ip):
try:
proxy_handler = urllib.request.ProxyHandler({'http': proxy_ip})
opener = urllib.request.build_opener(proxy_handler)
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
urllib.request.install_opener(opener)
urllib.request.urlopen('http://www.google.com') # change the url address here

except urllib.error.HTTPError as e:
print('Error code: ', e.code)
return e.code
except Exception as detail:

print( "ERROR:", detail)
return 1
return 0

# main
if __name__ == "__main__":
# read the list of proxy IPs in proxy-list.txt
with open(PROXY_LIST,"r") as proxy_list:
for item in proxy_list.readlines():
if is_bad_proxy(item):
print("Bad Proxy", item)
else:
print(item, "is working")