Skip to content

Instantly share code, notes, and snippets.

@p99will
Created April 12, 2013 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p99will/5369382 to your computer and use it in GitHub Desktop.
Save p99will/5369382 to your computer and use it in GitHub Desktop.
import urllib2
import cookielib
proxys = []
f=open("proxylist.txt",'r')
data = f.read()
f.close()
data = data.split('\n')
for i in data:
proxys.append(i)
print("Added proxies:" + str(len(proxys)))
count = 0
for i in proxys:
try:
##opener.open('http://www.google.com/search?hl=en&q=schladmin&nfpr=1&sa=X')
jar = cookielib.FileCookieJar("cookies")
proxy_support = urllib2.ProxyHandler({"http":"http://"+i})
opener = urllib2.build_opener(proxy_support,urllib2.HTTPCookieProcessor(jar))
opener.addheaders = [('User-Agent','Mozilla/5.0')]
response = opener.open("http://www.google.com/")
except:
print('error')
else:
print('worked')
print(str(count)+"/"+str(len(proxys)))
112.5.254.20:80
175.136.234.10:3128
125.39.66.134:80
201.238.227.201:3128
186.103.130.91:8080
112.133.201.70:3128
198.154.114.100:3128
83.239.214.100:3128
202.38.95.75:80
46.249.66.50:80
219.143.3.210:3128
218.2.51.72:8090
200.24.17.46:80
202.106.16.116:3128
190.0.19.146:8080
218.108.242.108:3128
200.109.201.61:8080
186.4.110.36:8080
202.112.126.88:2345
123.30.174.61:8080
212.119.97.198:3128
192.41.170.23:3128
203.152.216.75:8080
200.93.102.83:3128
72.64.146.136:3128
113.9.163.101:8080
60.191.142.233:8360
122.72.124.3:80
200.111.180.58:80
221.13.79.20:80
117.3.66.115:80
212.175.88.3:8080
202.149.78.234:8080
125.39.66.147:80
124.240.187.80:81
186.224.64.12:8080
198.154.114.118:8080
120.194.100.42:8001
103.247.16.13:8080
116.255.148.5:8080
222.74.98.234:8080
122.72.120.63:80
173.213.96.229:8080
210.4.73.82:8080
115.100.251.130:8080
207.249.149.107:80
177.87.242.194:8080
61.152.108.187:82
203.92.47.202:8082
95.87.239.115:80
125.88.74.91:8080
212.93.195.229:3128
125.39.66.153:80
58.67.147.206:8080
118.97.208.194:8080
61.135.223.4:7000
195.13.197.220:8080
62.173.37.202:80
178.18.17.211:8080
195.200.199.98:8080
46.231.14.49:8080
213.131.41.6:8080
61.135.209.203:81
125.162.196.69:8080
177.87.193.134:3128
210.14.143.53:7000
219.150.254.158:8080
202.29.216.236:3128
125.39.68.131:80
84.232.51.132:80
202.43.188.13:8080
217.218.43.130:3128
221.130.18.218:80
78.38.23.241:8080
122.160.205.81:3128
50.22.206.179:80
177.69.195.4:3128
106.120.98.166:3128
187.60.40.17:8080
116.255.129.69:3128
118.174.133.14:3128
190.90.36.8:8000
118.97.212.162:8080
187.75.157.163:8080
200.25.224.5:8080
218.203.107.169:80
84.42.3.3:3128
200.35.93.195:8080
61.19.252.92:3128
222.89.154.14:9000
85.217.130.46:8080
118.97.37.123:80
125.39.66.150:80
101.255.60.162:3128
222.169.193.34:3129
186.207.142.27:80
218.204.131.250:3128
124.240.187.79:82
118.97.92.58:8080
122.72.124.2:80
202.43.188.11:8080
87.250.37.50:800
218.203.107.165:80
201.161.198.214:8080
218.22.71.122:8080
183.60.137.121:3128
88.85.108.16:8080
218.91.206.146:8001
218.22.71.123:8080
103.247.16.241:8080
187.85.3.3:3128
114.80.136.112:7780
186.219.25.227:3128
119.97.146.148:80
218.206.204.254:443
182.48.191.83:3128
200.54.78.66:8080
59.57.15.71:80
113.28.244.195:3128
41.89.130.4:3128
190.248.67.146:8080
61.51.111.61:8443
66.35.68.145:3128
82.207.43.156:3128
114.112.189.58:32432
121.14.9.76:80
178.48.2.237:80
125.63.73.165:8080
79.98.112.11:8080
218.197.148.4:21
211.162.73.122:80
177.36.49.17:8080
188.64.128.1:3128
110.138.216.157:3128
95.79.55.210:3128
124.240.187.79:81
206.130.99.82:3128
125.210.188.35:80
182.48.191.83:80
186.219.25.229:3128
113.212.125.30:8080
89.237.134.10:8080
223.4.31.172:3128
206.130.99.82:8080
180.250.129.184:8080
211.167.112.15:80
200.27.129.12:3128
114.80.240.6:8090
188.138.246.47:8080
92.39.54.161:80
201.18.103.6:3128
180.222.142.210:80
201.18.107.234:3128
217.219.123.59:3128
202.182.172.2:3128
189.91.223.42:3128
202.106.16.36:3128
200.194.110.249:80
187.60.45.243:8080
212.200.115.140:8080
117.102.94.36:8080
103.11.99.162:8080
112.217.228.212:8080
118.145.16.146:3129
187.0.222.167:3128
173.213.96.229:3128
58.252.56.148:8080
119.252.172.131:80
177.139.137.107:3128
203.70.194.123:3128
177.36.49.6:8080
124.129.30.74:8080
110.138.206.11:8080
186.101.41.27:80
186.101.41.39:80
125.69.132.100:8080
183.60.44.136:88
186.101.35.3:8080
94.23.68.66:80
190.29.30.114:8080
113.160.50.51:80
88.250.173.22:80
119.97.146.152:80
119.235.16.41:8080
202.97.159.227:8080
120.197.85.171:33976
203.19.4.165:3128
201.64.254.228:3128
211.138.120.125:3128
223.4.179.153:3128
124.240.187.81:80
202.43.188.8:8080
222.89.55.123:8080
125.39.66.149:80
177.69.254.253:8080
211.142.236.132:80
176.9.47.143:3128
122.225.22.22:8080
190.0.58.58:8080
201.238.227.202:3128
125.39.66.130:80
124.207.82.166:8018
118.98.75.50:8080
77.78.104.129:8080
85.217.191.109:8080
218.249.86.131:554
116.90.208.47:8080
211.100.47.131:8990
190.96.64.234:8080
180.166.50.106:8000
189.75.100.98:8080
27.111.38.253:8080
91.221.176.163:3128
49.212.167.222:80
27.123.221.122:8080
122.72.0.28:80
223.4.31.169:3128
61.145.121.124:89
119.36.87.26:81
221.7.213.216:8080
89.135.63.36:80
85.217.191.49:8080
186.3.6.113:3128
118.96.31.91:3128
85.172.4.154:80
168.8.76.247:8080
197.220.163.75:8080
188.165.208.11:80
110.139.13.121:8080
109.195.54.231:3128
118.97.211.5:3128
218.203.105.24:80
122.4.78.26:34808
125.39.68.196:80
195.140.190.146:8080
124.81.113.183:8080
202.137.17.201:80
115.124.70.81:8080
94.247.25.164:80
60.195.251.213:80
221.176.172.10:8001
180.250.145.2:3128
159.255.160.23:8080
82.207.68.142:8080
181.48.15.98:8080
186.208.71.70:8080
177.21.238.34:8081
189.76.212.230:3128
87.98.226.33:3128
103.5.49.37:8080
200.253.158.131:3128
202.138.243.222:8080
202.77.108.60:8080
125.39.66.131:80
187.72.187.57:8080
183.221.250.137:80
222.222.194.100:8090
69.163.204.84:3128
203.76.98.194:8080
219.130.39.9:3128
94.247.25.162:80
186.101.41.26:80
41.76.170.17:3128
122.72.2.180:80
217.146.208.162:8080
175.111.90.34:8080
122.72.0.145:80
124.240.187.81:81
186.42.225.188:3128
200.196.51.130:8080
124.240.187.80:82
80.88.201.121:8080
210.22.115.162:3128
119.82.239.50:8080
202.116.1.149:8128
122.72.80.101:80
219.83.100.195:8080
190.249.133.219:8080
201.251.5.248:8080
218.5.74.174:80
118.98.35.251:8080
190.202.241.180:8080
118.97.100.75:8080
115.124.77.138:8081
211.151.181.41:80
82.194.184.30:8080
83.215.42.132:8080
118.97.188.145:8080
124.225.52.14:8080
186.192.17.138:8080
120.85.132.234:80
91.228.53.28:8080
201.232.104.7:8080
201.144.169.18:80
119.186.160.86:8000
175.136.192.5:8080
189.11.198.36:8080
110.74.218.147:8080
50.22.206.179:8080
202.118.236.130:7777
77.89.233.54:8080
118.96.126.246:3128
88.249.244.111:8080
85.217.191.117:8080
2.184.30.2:8080
2.133.93.162:9090
178.48.2.237:8080
202.70.136.158:3128
212.220.105.122:3128
120.202.47.22:8000
120.194.100.46:8001
187.84.81.70:8080
59.65.233.132:80
202.79.24.222:8080
77.237.73.3:80
123.129.214.155:80
122.72.76.122:80
62.165.42.170:8080
89.218.65.38:3128
125.88.75.151:3128
122.72.80.46:80
59.120.178.28:3128
118.97.63.227:8080
59.90.200.165:8080
122.72.76.121:80
31.170.178.2:8080
200.149.232.32:8080
218.22.71.213:8080
190.221.174.130:8080
114.141.162.53:8080
176.197.98.42:8000
180.178.100.81:8080
89.212.179.12:5491
222.124.178.98:3128
63.141.249.37:3128
190.68.102.154:8080
119.254.90.18:8080
180.246.109.97:8080
202.29.60.220:8080
202.43.188.10:8080
61.187.186.150:81
122.72.80.108:80
110.139.207.196:8080
190.40.54.245:8090
41.203.92.50:8080
125.39.25.202:8088
149.174.22.69:8080
222.83.14.145:3128
202.106.16.68:3128
202.158.104.195:80
63.141.249.37:8080
118.96.127.10:3128
176.197.98.42:80
115.25.216.6:80
79.175.187.2:8080
213.181.73.145:8080
125.39.66.151:80
122.115.62.108:8081
195.68.150.50:3128
200.153.150.142:3128
62.201.207.14:8080
80.90.27.60:8080
217.8.57.245:3128
200.85.39.10:8080
186.46.187.43:3128
193.167.187.82:8080
174.137.152.60:8080
180.245.217.70:8080
195.175.83.146:3129
120.193.17.162:8888
178.18.17.211:3128
86.111.144.194:20000
195.122.20.219:8080
82.200.165.46:3128
218.107.132.66:2345
187.32.49.35:3128
180.241.252.50:8080
110.139.119.193:8080
202.166.80.105:3128
188.126.79.105:3128
116.213.49.163:3128
117.218.37.18:3128
178.18.17.250:3128
177.36.48.241:8080
46.181.220.49:8080
122.72.80.107:80
124.240.187.80:83
103.247.16.6:8080
200.109.228.67:8080
190.146.132.205:8080
180.211.134.66:8080
78.9.164.162:8080
118.70.129.101:8080
125.39.68.197:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment