forked from pingc0y/go_proxy_pool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
308 lines (287 loc) · 11.3 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
#使用代理去获取代理IP
proxy:
host: 127.0.0.1
port: 20171
#配置信息
config:
#监听IP
ip: 0.0.0.0
#webApi监听端口
port: 81
#http隧道代理端口
httpTunnelPort: 3128
#https隧道代理端口
httpsTunnelPort: 443
#socket隧道代理端口
socketTunnelPort: 1080
#隧道筛选超时时间 (ms)
tunnelTime: 3000
#可用IP数量小于‘proxyNum’时就去抓取
proxyNum: 1000
#代理IP验证间隔秒
verifyTime: 600
#检查的URL
verifyUrl: 'httpbin.org/get'
#检查URL存在的字段
verifyUrlWords: '"X-Amzn-Trace-Id": "Root='
#抓取/检测状态线程数
threadNum: 200
#ip源
spider:
- name: 'proxy.ip3366.net'
#请求方式
method: 'GET'
#post传参用的请求体
#body: ''
#urls请求间隔/秒,防止频率过快被限制
interval: 0
#使用的请求头
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
#获取的地址
urls:
- https://proxy.ip3366.net/free/
#获取IP的正则表达式,
ip: '\"IP\">(\d+?\.\d+?.\d+?\.\d+?)</td>'
#获取端口的正则表达式
port: '\"PORT\">(\d+?)</td>'
#是否使用代理去请求
proxy: false
- name: "www.ip3366.net"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- http://www.ip3366.net/?stype=1&page=1
- http://www.ip3366.net/?stype=2&page=1
- http://www.ip3366.net/?stype=3&page=1
- http://www.ip3366.net/?stype=4&page=1
ip: '<td>[\s]*?(\d+?\.\d+?.\d+?\.\d+?)[\s]*?</td>'
port: '<td>[\s]*?\d+?\.\d+?.\d+?\.\d+?[\s]*?</td>[\s]*?<td>[\s]*?(\d+?)[\s]*?</td>'
proxy: false
- name: "www.89ip.cn"
method: 'GET'
interval: 3
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://www.89ip.cn/index_1.html
- https://www.89ip.cn/index_2.html
- https://www.89ip.cn/index_3.html
ip: '<td>[\s]*?(\d+?\.\d+?.\d+?\.\d+?)[\s]*?</td>'
port: '<td>[\s]*?\d+?\.\d+?.\d+?\.\d+?[\s]*?</td>[\s]*?<td>[\s]*?(\d+?)[\s]*?</td>'
proxy: false
- name: "api.89ip.cn"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- http://api.89ip.cn/tqdl.html?api=1&num=60&port=&address=&isp=
ip: '[\s]*?(\d+?\.\d+?.\d+?\.\d+?)[\s]*?:(\d+)<br>'
port: '[\s]*?\d+?\.\d+?.\d+?\.\d+?[\s]*?:(\d+)<br>'
proxy: false
- name: "www.kuaidaili.com"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://www.kuaidaili.com/free/
- https://www.kuaidaili.com/free/fps/
ip: '"ip": "(\d+?\.\d+?.\d+?\.\d+?)",'
port: '"port": "(\d+?)"},'
proxy: false
- name: "uu-proxy.com"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://uu-proxy.com/api/free
ip: '"ip":"(\d+?\.\d+?.\d+?\.\d+?)",'
port: '"port":(\d+?),'
proxy: false
- name: "www.zdaye.com"#阿里云盾
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://www.zdaye.com/free/?ip=&adr=&checktime=&sleep=&cunhuo=&dengji=&nadr=&https=&yys=&post=&px=
ip: '<td>(\d+?\.\d+?.\d+?\.\d+?)</td>'
port: '<td>\d+?\.\d+?.\d+?\.\d+?</td>[\s]*?<td>(\d+?)</td>'
proxy: false
- name: "ip.ihuan.me"
method: 'GET'
interval: 3
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://ip.ihuan.me
- https://ip.ihuan.me/
ip: '.svg">(\d+?\.\d+?.\d+?\.\d+?)</a></td><td>'
port: '.svg">\d+?\.\d+?.\d+?\.\d+?</a></td><td>(\d+?)</td>'
proxy: false
- name: "proxydb.net"
method: 'POST'
body: '{"protocol":"http","protocol":"https","protocol":"socks5"}'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://proxydb.net/list
ip: '"ip":"(\d+?\.\d+?.\d+?\.\d+?)",'
port: 'port":(\d+?),'
proxy: true
- name: "www.proxy-list.download"#cloudflare
method: 'POST'
body: '{"protocol":"http","protocol":"https","protocol":"socks5"}'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://www.proxy-list.download/HTTP
ip: '<td>[\s]*?(\d+?\.\d+?.\d+?\.\d+?[\s]*?)</td>'
port: '<td>[\s]*?\d+?\.\d+?.\d+?\.\d+?[\s]*?</td>[\s]*?<td>[\s]*?(\d+?)[\s]*?</td>'
proxy: true
# - name: "hide.mn"#cloudflare暂时饶不了
# method: 'GET'
# Headers:
# User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
# urls:
# - https://hidemy.io/en/proxy-list/?maxtime=1000&type=hs5#list
# - https://hidemy.name/en/proxy-list/?maxtime=1000&type=hs5#list
# - https://hide.mn/en/proxy-list/?maxtime=1000&type=hs5#list
# ip: '<td>(\d+?\.\d+?.\d+?\.\d+?)</td><td>\d+</td>'
# port: '<td>\d+?\.\d+?.\d+?\.\d+?</td><td>(\d+)</td>'
# proxy: true
- name: "proxyscrape.com"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://api.proxyscrape.com/v2/?request=getproxies&protocol=http&timeout=10000&country=CN&ssl=all&anonymity=all
- https://api.proxyscrape.com/v4/free-proxy-list/get?request=get_proxies&protocol=http,socks4,socks5&proxy_format=ipport&format=text&timeout=20000
ip: '(\d+?\.\d+?.\d+?\.\d+?):\d+'
port: '\d+?\.\d+?.\d+?\.\d+?:(\d+)'
anonymity: '透明'
proxy: true
- name: "openproxy.space"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
urls:
- https://openproxy.space/list/socks5
- https://openproxy.space/list/http
- https://openproxy.space/list/socks4
-
ip: '"(\d+?\.\d+?.\d+?\.\d+?):\d+?",'
port: '"\d+?\.\d+?.\d+?\.\d+?:(\d+?)",'
anonymity: '透明'
proxy: true
- name: "my-proxy.com"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'
urls:
- https://www.my-proxy.com/free-elite-proxy.html
- https://www.my-proxy.com/free-anonymous-proxy.html
- https://www.my-proxy.com/free-transparent-proxy.html
ip: '(\d+?\.\d+?.\d+?\.\d+?):\d+'
port: '\d+?\.\d+?.\d+?\.\d+?:(\d+)'
proxy: true
- name: "my-proxy.com"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'
urls:
- https://www.my-proxy.com/free-socks-4-proxy.html
- https://www.my-proxy.com/free-socks-5-proxy.html
- https://www.my-proxy.com/free-proxy-list.html
- https://www.my-proxy.com/free-proxy-list-2.html
- https://www.my-proxy.com/free-proxy-list-3.html
- https://www.my-proxy.com/free-proxy-list-4.html
- https://www.my-proxy.com/free-proxy-list-5.html
- https://www.my-proxy.com/free-proxy-list-6.html
- https://www.my-proxy.com/free-proxy-list-7.html
- https://www.my-proxy.com/free-proxy-list-8.html
- https://www.my-proxy.com/free-proxy-list-9.html
- https://www.my-proxy.com/free-proxy-list-10.html
ip: '>(\d+?\.\d+?.\d+?\.\d+?):\d+#'
port: '>\d+?\.\d+?.\d+?\.\d+?:(\d+)#'
proxy: true
- name: "lumiproxy.com"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'
urls:
- https://www.lumiproxy.com/web_v1/free-proxy/list?page_size=1710&language=zh-hans
ip: '"ip":"(\d+?\.\d+?.\d+?\.\d+?)","port":\d+,"'
port: '"ip":"\d+?\.\d+?.\d+?\.\d+?","port":(\d+),"'
proxy: true
- name: "proxycompass.com"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'
urls:
- https://proxycompass.com/wp-admin/admin-ajax.php?action=proxylister_download&nonce=ecad5472d7&format=txt&filter=%7B%7D
ip: '(\d+?\.\d+?.\d+?\.\d+?):\d+'
port: '\d+?\.\d+?.\d+?\.\d+?:(\d+)'
proxy: true
- name: "proxy代理"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'
urls:
- https://free-proxy-list.net/
- https://www.us-proxy.org/
- https://www.socks-proxy.net/
- https://rootjazz.com/proxies/proxies.txt
ip: '(\d+?\.\d+?.\d+?\.\d+?):\d+'
port: '\d+?\.\d+?.\d+?\.\d+?:(\d+)'
proxy: true
- name: "github.com"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'
urls:
- https://raw.githubusercontent.com/ErcinDedeoglu/proxies/main/proxies/http.txt
- https://raw.githubusercontent.com/ErcinDedeoglu/proxies/main/proxies/https.txt
- https://raw.githubusercontent.com/ErcinDedeoglu/proxies/main/proxies/socks4.txt
- https://raw.githubusercontent.com/ErcinDedeoglu/proxies/main/proxies/socks5.txt
- https://raw.githubusercontent.com/proxifly/free-proxy-list/main/proxies/all/data.txt
- https://raw.githubusercontent.com/saisuiu/Lionkings-Http-Proxys-Proxies/refs/heads/main/free.txt
- https://raw.githubusercontent.com/saisuiu/Lionkings-Http-Proxys-Proxies/refs/heads/main/cnfree.txt
- https://raw.githubusercontent.com/zloi-user/hideip.me/main/http.txt
- https://raw.githubusercontent.com/zloi-user/hideip.me/main/https.txt
- https://raw.githubusercontent.com/zloi-user/hideip.me/main/socks4.txt
- https://raw.githubusercontent.com/zloi-user/hideip.me/main/socks5.txt
- https://raw.githubusercontent.com/zloi-user/hideip.me/main/connect.txt
- https://raw.githubusercontent.com/Vauth/proxy/main/proxy.txt
- https://raw.githubusercontent.com/vakhov/fresh-proxy-list/master/http.txt
- https://raw.githubusercontent.com/vakhov/fresh-proxy-list/master/https.txt
- https://raw.githubusercontent.com/vakhov/fresh-proxy-list/master/socks4.txt
- https://raw.githubusercontent.com/vakhov/fresh-proxy-list/master/socks5.txt
- https://github.com/BreakingTechFr/Proxy_Free/blob/main/proxies/all.txt
- https://raw.githubusercontent.com/hookzof/socks5_list/master/proxy.txt
ip: '(\d+?\.\d+?.\d+?\.\d+?):\d+'
port: '\d+?\.\d+?.\d+?\.\d+?:(\d+)'
proxy: true
- name: "github.com/jepluk/PROXYLIST"
method: 'GET'
Headers:
User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'
urls:
- https://raw.githubusercontent.com/jepluk/PROXYLIST/main/all.json
ip: 'address": "(\d+?\.\d+?.\d+?\.\d+?)", "'
port: 'port": "(\d+)", "'
proxy: true
#通过插件,扩展ip源
#spiderPlugin:
# #插件名
# - name: test
# #运行命令,返回的结果要符合格式
# run: 'text.exe'
#通过文件导入ip
#spiderFile:
# #插件名
# - name: test1
# #运行命令,返回的结果要符合格式
# path: 'ip.txt'
#
#