Skip to content

Commit 6af4e8a

Browse files
committed
Updated Source.
1 parent c07325f commit 6af4e8a

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

config.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
proxy_urls:
2+
- name: gatherproxy
3+
url: "http://www.gatherproxy.com/sockslist/country/?c=China"
24
- name: spysone
35
url: "http://spys.one/free-proxy-list/CN/"
46
- name: proxynova
57
url: "https://www.proxynova.com/proxy-server-list/country-cn/"
6-
- name: cnproxy
7-
url: "http://cn-proxy.com/"
8+
# - name: cnproxy
9+
# url: "http://cn-proxy.com/"
810
proxy_domain:
911
# - 126.com
1012
- ipservice.163.com
@@ -46,7 +48,7 @@ validate_url: "http://ip-api.com/json/"
4648
speedtest_url : "http://music.163.com/test"
4749
speedtest_url_https : "https://music.163.com"
4850

49-
https_enabled : false
51+
https_enabled : true
5052

5153
# HTTPS Related options
5254

@@ -83,7 +85,7 @@ disable_proxy : false
8385
# Enable socks proxy
8486
enable_socks : true
8587
# Enable http/https proxy
86-
enable_http : true
88+
enable_http : false
8789

8890

8991

profile/proxy_rules.py

+11
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,15 @@ def get_data_on_profile(profile,driver,number):
6060
proxy_info = proxy_list[i].text.strip().split(" ")
6161
result.append([proxy_info[1].split(":")[0],proxy_info[1].split(":")[1],proxy_info[2]])
6262
print(driver)
63+
64+
elif profile=='gatherproxy':
65+
66+
proxy_list = driver.find_elements_by_css_selector("tr")
67+
if len(proxy_list)<number+2:
68+
number = len(proxy_list)-2
69+
for i in range(2,number+2):
70+
proxy_info = proxy_list[i].text.strip().split(" ")
71+
result.append([proxy_info[3],proxy_info[4],"SOCKS5"])
72+
print(driver)
73+
6374
return result

0 commit comments

Comments
 (0)