From 91e619a10c73c6ca0b2334052daa4b347a080fc5 Mon Sep 17 00:00:00 2001 From: jyhl Date: Tue, 12 May 2020 10:45:55 +0800 Subject: [PATCH] fix --- scrapypyppeteer/middlewares.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scrapypyppeteer/middlewares.py b/scrapypyppeteer/middlewares.py index e343d00..6e9a779 100644 --- a/scrapypyppeteer/middlewares.py +++ b/scrapypyppeteer/middlewares.py @@ -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)