Skip to content

Instantly share code, notes, and snippets.

@jesusgoku
Last active May 1, 2020 10:51
Show Gist options
  • Save jesusgoku/d92eb3c3e08867914be67d1d946238be to your computer and use it in GitHub Desktop.
Save jesusgoku/d92eb3c3e08867914be67d1d946238be to your computer and use it in GitHub Desktop.
Filter list of proxies by max response time
187.177.139.8:8080
110.93.214.36:30759
45.182.156.236:52668
185.63.253.202:5836
201.204.168.106:63141
103.216.82.153:6666
94.130.20.85:31288
173.249.30.197:8118
77.94.123.91:33380
119.226.97.170:8080
176.212.114.139:39581
71.13.82.30:80
36.67.38.135:8080
142.44.148.56:8080
103.216.95.16:61755
181.113.135.254:52058
190.152.0.130:55870
164.163.1.30:49808
203.176.135.98:54255
175.41.44.43:52581
36.67.253.135:30475
154.72.202.62:53281
103.70.162.97:8080
123.200.20.242:58847
197.216.2.18:8080
95.84.168.158:41928
172.104.67.229:3129
159.203.61.169:3128
51.158.68.68:8811
103.9.188.151:38439
202.166.202.29:58794
103.102.13.7:8080
187.62.191.3:61456
103.42.253.210:38797
188.40.183.191:1080
190.144.118.106:59562
91.150.189.122:55869
183.87.153.98:49602
51.158.107.202:8811
88.198.24.108:8080
58.176.150.177:80
203.202.245.62:80
103.252.117.230:3128
66.97.42.99:3128
194.127.108.118:8080
182.16.166.86:47200
145.239.81.69:8080
103.76.20.155:54845
163.172.136.226:8811
103.251.57.23:60083
36.89.182.225:61563
103.58.249.254:23500
18.228.179.219:8080
185.10.166.130:8080
103.231.218.30:47568
167.71.5.83:8080
203.77.239.18:37002
173.212.202.65:80
188.226.141.211:3128
5.252.161.48:8080
36.74.124.189:3128
200.70.22.74:8080
139.59.1.14:3128
188.40.183.186:1080
197.219.200.20:61877
134.209.29.120:3128
144.76.214.159:1080
180.252.181.2:80
202.165.47.26:8080
188.226.141.61:3128
42.3.51.34:80
88.198.50.103:8080
169.57.157.148:8123
36.92.128.11:55443
118.97.53.99:31439
200.108.183.2:8080
138.197.157.32:8080
93.117.226.42:8080
188.166.83.17:3128
95.68.115.202:53281
203.82.36.107:8080
188.40.183.187:1080
177.92.20.182:46212
177.103.179.122:34995
45.123.42.146:31295
151.80.199.89:3128
79.137.123.252:3132
161.35.70.249:8080
91.205.51.27:49805
167.86.126.167:3128
103.74.70.142:35754
177.46.148.142:3128
103.126.218.68:8080
112.133.214.244:80
203.202.245.58:80
200.52.141.162:53281
182.16.246.4:8080
46.4.96.137:3128
185.172.201.17:41258
94.249.236.165:8080
188.40.183.185:1080
124.41.211.188:36293
202.75.97.82:47009
36.89.194.113:38622
202.83.121.90:80
174.67.106.117:80
112.78.43.225:808
110.44.126.83:3128
202.154.180.170:8000
103.121.148.251:8080
138.255.36.199:8080
180.250.204.93:8080
103.78.213.226:39740
34.84.121.32:8080
89.36.195.238:52808
103.119.147.234:3128
213.6.227.38:54796
95.161.216.11:3128
167.86.66.178:3128
212.42.113.240:37545
182.253.21.26:46977
142.93.14.224:8080
82.207.41.135:55126
77.104.69.203:42268
125.163.233.105:80
91.67.240.32:3128
177.46.141.143:37548
195.154.57.63:5836
171.6.76.51:8080
207.154.231.213:8080
177.12.80.50:50556
125.26.131.45:8080
128.199.182.161:3128
2.187.208.162:8080
191.36.244.230:51377
194.143.249.63:8080
185.205.209.198:80
160.0.218.170:8080
88.198.33.232:1080
85.10.219.100:1080
117.58.241.164:52636
136.37.159.248:3128
181.129.183.19:53281
2.187.225.11:8080
203.29.27.4:8080
82.165.236.212:80
103.81.104.66:46986
134.35.220.17:8080
119.42.86.237:8080
168.205.92.131:8080
138.36.20.43:44641
36.90.78.58:8080
180.241.149.211:8080
144.76.214.154:1080
118.97.22.203:8080
191.103.219.225:48612
58.84.189.91:53281
200.89.178.241:80
80.87.184.49:41258
81.200.63.108:60579
54.233.177.80:3128
184.183.3.211:8080
36.65.211.100:8080
74.59.132.126:49073
88.99.10.249:1080
200.150.86.138:44677
5.160.151.190:8080
34.80.81.147:3128
103.134.111.90:8060
88.99.10.254:1080
68.15.31.118:48678
85.10.219.96:1080
154.119.33.91:8080
148.251.153.6:1080
118.99.102.9:8080
34.209.148.151:3128
203.202.254.206:32938
54.202.96.169:3128
109.75.47.248:53422
188.209.228.196:8080
191.103.254.125:51869
103.220.207.242:32227
84.42.247.101:3128
45.232.155.167:8080
186.56.99.103:53040
83.228.74.251:50371
144.76.214.155:1080
103.239.253.218:31913
201.20.98.22:37596
200.73.128.5:8080
167.172.252.112:3128
36.92.10.95:3128
1.175.140.151:80
197.54.14.251:8080
182.253.86.238:8080
41.164.199.130:8080
165.255.174.6:3128
5.160.150.94:8080
103.14.198.145:84
169.1.151.131:8080
112.78.164.21:8080
131.117.162.31:8080
146.88.36.243:8080
45.77.65.24:3128
85.10.219.102:1080
109.75.34.40:33333
88.99.10.255:1080
110.77.248.215:8080
139.99.105.186:80
173.249.24.52:3128
181.13.209.36:8080
201.234.185.147:42226
201.184.151.58:45718
113.160.234.160:8080
191.252.100.178:80
61.5.100.46:8080
181.57.198.102:46960
212.95.180.50:53281
110.74.198.241:8080
136.243.92.25:1080
45.71.216.242:8080
159.65.244.224:3128
180.180.170.188:8080
1.10.133.251:8080
85.187.17.39:53281
86.57.177.8:39217
200.174.158.26:34112
103.58.73.94:80
36.90.119.43:80
90.183.101.238:35542
81.163.122.170:8080
176.100.84.235:80
178.141.249.246:8081
102.165.69.222:8080
200.89.178.129:8080
200.35.56.161:35945
194.26.180.142:80
181.129.47.162:54445
5.164.195.63:8080
49.49.75.46:8080
35.220.131.188:80
88.99.10.252:1080
86.57.181.122:51078
188.40.183.189:1080
198.98.51.240:8080
171.6.90.4:8080
85.10.219.97:1080
165.227.46.193:3128
176.9.75.42:8080
1.0.186.26:8080
45.229.193.109:8080
31.209.110.159:55166
195.154.57.157:5836
176.9.119.170:8080
41.170.84.218:12354
110.136.44.225:8080
46.4.96.67:80
144.76.214.156:1080
144.76.214.158:1080
94.237.68.246:8080
191.97.44.86:23500
78.25.68.145:8080
50.235.149.74:8080
175.100.18.45:57716
201.182.120.230:8080
163.172.204.238:5836
27.254.92.31:8081
36.68.25.58:8080
5.160.150.13:8080
139.255.25.83:3128
186.227.185.25:3128
121.139.171.35:80
36.90.172.72:8080
80.245.117.132:8080
92.33.17.248:8080
43.252.73.100:53557
187.62.209.155:8080
101.108.50.39:8080
78.132.137.229:8181
190.104.179.210:82
170.81.141.35:53281
117.239.240.202:53281
60.48.3.105:8080
103.7.197.93:80
102.134.164.13:36619
103.96.235.178:23500
186.235.83.186:44693
91.220.166.148:39915
181.10.44.69:999
41.77.81.90:8080
110.172.160.42:44047
103.25.155.161:83
107.10.20.22:80
180.183.45.110:8080
188.242.224.144:56391
27.254.92.29:8081
103.88.221.194:36411
103.104.132.52:8080
36.89.190.211:44277
14.207.27.124:8080
159.203.61.169:3128
51.158.107.202:8811
88.198.24.108:8080
167.71.5.83:8080
173.212.202.65:80
139.59.1.14:3128
134.209.29.120:3128
42.3.51.34:80
88.198.50.103:8080
151.80.199.89:3128
161.35.70.249:8080
167.86.126.167:3128
46.4.96.137:3128
45.77.65.24:3128
181.13.209.36:8080
159.65.244.224:3128
176.9.75.42:8080
176.9.119.170:8080
46.4.96.67:80
165.227.26.45:80
159.203.124.201:3128
12.139.101.100:80
159.65.244.224:3128
165.227.216.91:8080
138.68.60.8:3128
12.139.101.97:80
209.97.150.167:8080
198.199.86.11:8080
165.227.83.198:8080
63.82.52.254:8080
198.98.54.241:8080
157.245.222.183:80
72.249.51.52:80
165.227.26.45:80
159.203.124.201:3128
12.139.101.100:80
159.65.244.224:3128
165.227.216.91:8080
138.68.60.8:3128
165.227.183.55:8080
12.139.101.97:80
209.97.150.167:8080
198.199.86.11:8080
63.82.52.254:8080
165.227.15.78:3128
165.227.202.9:80
208.255.161.107:8080
198.98.54.241:8080
45.77.202.207:8080
45.76.2.34:8080
104.243.38.132:80
72.249.51.52:80
78.8.188.100:32040
109.199.133.161:23500
109.167.134.253:30710
185.37.213.76:30695
87.247.3.234:39489
175.41.45.113:52581
164.163.1.30:49808
103.23.135.202:56910
194.213.43.166:32422
116.254.100.165:46675
103.216.82.22:6666
182.176.228.147:57472
193.33.241.61:45837
192.162.193.243:36910
190.18.207.58:53281
183.87.14.250:44915
109.70.189.56:48774
80.187.140.26:8080
89.251.70.153:43716
36.67.89.179:65205
192.41.71.221:3128
88.79.82.103:8080
31.173.94.93:44978
118.172.51.110:36552
118.172.201.80:46677
51.158.99.51:8811
181.118.167.104:80
203.82.36.107:8080
212.67.0.150:33171
94.228.82.170:32427
170.244.88.67:53281
109.75.47.248:53422
81.236.13.23:32500
151.80.199.89:3128
176.221.104.2:35215
178.128.24.20:11
41.217.219.49:54302
203.82.36.105:8080
51.38.71.101:8080
118.173.233.80:31559
134.196.244.120:46425
202.138.241.166:8080
103.94.121.27:60109
176.192.8.206:39422
170.82.253.146:53281
196.3.97.71:23500
103.216.82.43:6666
1.20.99.89:32963
37.26.136.181:58930
183.182.101.32:45365
187.108.86.40:34524
109.232.106.236:35423
103.250.68.193:51370
103.216.82.209:54806
176.123.24.78:8080
217.196.81.221:37564
91.139.1.158:37504
182.253.204.66:34967
163.53.209.7:6666
89.216.48.230:44061
187.87.204.210:45597
41.65.146.38:8080
201.62.56.49:35816
80.191.174.220:8080
169.239.223.136:38663
84.42.247.101:3128
181.143.106.162:39617
103.9.188.229:36984
82.117.244.85:31280
154.72.202.62:53281
187.44.160.234:50588
197.245.230.122:43943
118.174.196.112:36314
104.148.76.171:3128
41.76.117.194:30878
196.0.111.194:34638
46.8.113.8:53281
45.70.212.188:55443
154.127.32.89:60020
119.82.252.76:55875
186.125.59.8:44363
213.98.67.40:41005
46.39.245.204:54108
110.74.198.146:54020
177.72.72.217:54468
103.239.254.114:32325
191.5.0.79:53281
125.27.251.79:60832
5.252.179.8:3128
103.119.147.234:3128
93.117.226.42:8080
195.209.176.2:8080
5.63.165.178:40561
45.235.87.94:53781
117.222.63.176:58672
103.9.188.151:38439
91.203.176.204:8081
37.220.195.14:53281
175.139.179.65:51460
195.69.218.198:42125
96.87.16.153:41344
45.33.38.108:80
165.227.26.45:80
159.203.124.201:3128
12.139.101.100:80
192.41.13.71:3128
157.245.15.86:8080
172.254.124.231:3128
50.236.148.246:39970
144.202.9.4:3128
34.73.222.183:8080
208.98.185.89:53630
107.178.4.215:35330
138.68.53.44:8118
38.126.254.114:45517
34.87.96.183:80
52.25.241.52:80
160.2.38.41:8080
71.13.82.30:80
174.67.106.117:80
34.84.121.32:8080
142.93.14.224:8080
34.209.148.151:3128
184.183.3.211:8080
54.202.96.169:3128
159.65.244.224:3128
167.172.252.112:3128
68.15.31.118:48678
136.37.159.248:3128
198.98.51.240:8080
50.235.149.74:8080
72.252.4.250:8080
107.10.20.22:80
208.67.183.240:80
199.167.184.124:80
104.148.76.178:3128
162.248.247.153:32592
198.50.152.64:23500
192.92.205.132:80
207.144.111.230:8080
68.188.63.149:8080
63.224.174.18:8080
72.252.4.114:8080
166.150.32.182:56074
66.36.239.200:5836
66.42.65.149:8118
173.46.67.172:58517
204.15.243.233:58159
24.172.34.114:49116
216.169.73.65:40344
205.158.57.2:53281
216.198.188.26:51068
34.225.47.147:80
54.215.33.223:3128
216.228.69.202:54085
23.243.48.184:8080
167.172.193.104:80
72.250.28.64:36851
3.226.57.156:80
178.128.153.38:80
162.223.88.228:8080
34.216.89.174:53281
35.236.176.111:8080
206.81.12.52:3128
35.223.152.223:8080
97.64.61.244:80
72.169.67.109:87
162.144.220.192:80
73.216.132.208:44428
165.227.216.91:8080
192.41.71.221:3128
138.68.60.8:3128
190.103.178.15:8080
104.45.188.43:3128
191.96.42.80:3128
165.227.183.55:8080
68.183.158.43:3128
12.139.101.97:80
192.41.71.204:3128
52.179.231.206:80
209.97.150.167:8080
198.199.86.11:8080
165.227.83.198:8080
138.68.240.218:8080
63.82.52.254:8080
198.199.120.102:3128
165.227.15.78:3128
162.243.108.129:3128
34.213.40.1:3128
190.103.178.14:8080
102.129.249.120:8080
138.68.245.146:80
165.227.202.9:80
50.236.148.254:39970
104.148.76.134:3128
52.170.3.71:80
173.82.12.10:5836
173.82.12.15:5836
166.249.185.133:49473
92.38.169.143:5836
173.192.128.238:25
3.17.41.198:3838
23.137.128.122:41549
167.99.153.132:80
104.45.128.122:80
52.41.94.5:80
69.65.65.178:34548
208.255.161.107:8080
34.106.52.165:3128
209.80.12.180:80
73.239.197.175:8080
65.184.156.234:56911
192.119.203.124:48678
52.206.255.142:80
98.158.58.200:8080
173.217.255.36:33351
38.90.33.62:80
104.43.244.233:80
3.231.153.196:80
96.30.9.173:3128
104.148.76.162:3128
67.207.94.118:80
167.99.236.14:80
104.244.75.218:8080
104.148.76.158:3128
104.148.76.154:3128
184.179.66.118:3128
68.183.111.90:80
47.56.5.74:80
136.25.2.43:40614
3.95.11.66:3128
167.99.174.59:80
72.169.65.145:87
104.148.76.163:3128
71.183.100.116:80
13.59.22.61:80
198.98.54.241:8080
63.224.174.1:8080
23.237.173.102:3128
104.3.189.30:39815
35.244.38.170:8080
134.73.254.68:3128
159.65.43.38:8118
208.72.145.14:53281
45.77.203.169:8000
66.119.99.22:80
104.245.69.17:3128
104.248.49.76:8080
47.51.51.190:8080
104.244.75.26:8080
103.83.36.165:5836
198.73.227.176:80
198.98.56.71:8080
103.83.36.53:5836
45.77.202.207:8080
50.210.111.187:8080
129.146.138.235:3128
70.169.150.122:48678
45.76.2.34:8080
104.148.76.147:3128
172.96.166.116:8118
73.64.132.41:8118
34.195.67.1:80
98.172.141.30:8080
192.241.223.145:80
167.99.166.194:8081
34.77.63.53:3128
66.23.233.90:3128
24.245.100.212:48678
18.233.119.46:80
35.222.208.56:3128
74.208.112.84:8080
24.172.82.94:53281
50.249.79.18:8080
108.74.113.180:80
198.98.55.168:8080
8.9.36.201:8080
173.82.12.14:5836
63.151.67.7:8080
104.243.38.132:80
18.217.66.81:80
52.9.37.116:80
173.82.105.53:80
24.106.221.230:53281
159.203.82.173:3128
75.80.242.9:41007
47.245.28.60:8118
12.218.209.130:53281
173.197.169.6:8080
165.227.214.29:80
148.77.34.196:48521
157.245.222.183:80
72.249.51.52:80
72.167.223.40:80
68.169.58.169:80
206.189.78.12:1080
34.82.18.10:80
152.44.32.143:80
3.17.40.89:3838
75.151.213.85:8080
#!/usr/bin/env bash
# Read file with one proxy for line and check response time
#
# Extract from: https://free-proxy-list.net/ with:
# [...document.querySelectorAll('#proxylisttable tbody tr')].map((el) => el.querySelectorAll('td')).map(([address, port]) => [address.textContent, port.textContent]).map(([address, port]) => `${address}:${port}`).join('\n');
PROXIES_FILE="$1"
MAX_TIME="$2"
if [ ! -f "${PROXIES_FILE}" ]; then
echo "File not exists ..."
exit 1
fi
if [ -z "${MAX_TIME}" ]; then
MAX_TIME=1
fi
readarray -t PROXIES < "$PROXIES_FILE"
PROXIES_COUNT="${#PROXIES[@]}"
# echo "${PROXIES[@]}"
# echo "${!PROXIES[@]}"
# echo "${#PROXIES[@]}"
# exit 0
for i in "${!PROXIES[@]}"; do
PROXY_NUM=$(($i + 1))
PROXY="${PROXIES[$i]}"
echo ""
echo "-----------------------------------------------------------------------"
echo "TESTING ${PROXY_NUM}/${PROXIES_COUNT}: ${PROXY}"
CODE=$(curl --silent --output /dev/null --write-out "%{http_code}" --max-time "${MAX_TIME}" -x "${PROXY}" ifconfig.co)
if [ "${CODE}" != "200" ]; then
echo "PROXY FAIL WITH CODE ${CODE}"
continue
fi
echo "OK"
echo "${PROXY}" >> "${PROXIES_FILE%.txt}-filtered-$(date +'%s').txt"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment