-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
155 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
.vscode/ | ||
.vscode/ | ||
.idea/ | ||
test.html | ||
lib/__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import requests | ||
|
||
good_proxies = [] | ||
bad_proxies = [] | ||
|
||
def get_proxy_list(): | ||
fx = open('proxies.txt', 'r') | ||
proxies = fx.read().split('\n') | ||
fx.close() | ||
|
||
return proxies | ||
|
||
def set_proxy(session, proxy): | ||
if proxy != 'none': | ||
session.proxies.update({ | ||
'http:' : 'http://' + proxy, | ||
'https:' : 'https://' + proxy | ||
}) | ||
return session | ||
|
||
def check_proxy(proxy): | ||
ps = requests.Session() | ||
try: | ||
session = set_proxy(ps, proxy) | ||
r = session.get('https://google.com', timeout=4) | ||
if r.status_code is 200: | ||
good_proxies.append(proxy) | ||
return True | ||
except r.raise_for_status(): | ||
bad_proxies.append(proxy) | ||
return False |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
167.114.47.231:3128 | ||
165.227.53.107:3128 | ||
189.90.255.61:8080 | ||
94.177.175.232:3128 | ||
5.196.189.50:8080 | ||
203.146.82.253:3128 | ||
180.247.12.6:8080 | ||
165.84.167.54:8080 | ||
143.0.188.26:80 | ||
190.121.158.114:8080 | ||
203.58.117.34:80 | ||
27.54.116.71:80 | ||
159.255.163.178:80 | ||
83.174.63.181:80 | ||
36.67.30.26:80 | ||
59.126.48.8:80 | ||
104.41.51.173:80 | ||
13.73.1.69:80 | ||
13.73.25.58:80 | ||
91.191.173.37:808 | ||
203.202.251.42:80 | ||
204.12.155.204:3128 | ||
202.44.109.208:8080 | ||
186.42.185.114:65103 | ||
169.239.46.110:53281 | ||
187.125.100.170:8080 | ||
190.18.134.27:8080 | ||
85.90.199.59:53281 | ||
191.103.252.169:53281 | ||
81.30.181.181:8080 | ||
49.231.196.114:53281 | ||
187.60.160.46:8080 | ||
170.79.16.19:8080 | ||
99.232.234.15:3128 | ||
194.60.226.76:8080 | ||
194.126.182.30:53281 | ||
77.252.139.246:8080 | ||
198.27.115.40:8080 | ||
1.179.181.149:8080 | ||
180.250.8.74:8080 | ||
180.148.211.179:53281 | ||
175.29.177.17:8080 | ||
103.87.136.242:8080 | ||
187.1.57.1:53281 |