|
|
|
@ -34,15 +34,11 @@ class ProxyMiddleware(object):
|
|
|
|
|
|
|
|
|
|
def process_request(self, request, spider): |
|
|
|
|
# 代理服务器 |
|
|
|
|
# proxyHost = "t.16yun.cn" |
|
|
|
|
# proxyPort = "31111" |
|
|
|
|
proxyHost = "u1.5.tn.16yun.cn" |
|
|
|
|
proxyPort = "6441" |
|
|
|
|
proxyHost = "t.16yun.cn" |
|
|
|
|
proxyPort = "31111" |
|
|
|
|
# 代理隧道验证信息 |
|
|
|
|
# proxyUser = "username" |
|
|
|
|
# proxyPass = "password" |
|
|
|
|
proxyUser = "16ZJZYVL" |
|
|
|
|
proxyPass = "113813" |
|
|
|
|
proxyUser = "username" |
|
|
|
|
proxyPass = "password" |
|
|
|
|
|
|
|
|
|
request.meta['proxy'] = "http://{0}:{1}".format(proxyHost, proxyPort) |
|
|
|
|
|
|
|
|
|