add 460 454 error
This commit is contained in:
parent
6edc5e0768
commit
adf61f2a9e
|
@ -32,7 +32,7 @@ class ProxyMiddleware:
|
||||||
|
|
||||||
def process_response(self, request, response, spider):
|
def process_response(self, request, response, spider):
|
||||||
# 如果响应正常,返回响应
|
# 如果响应正常,返回响应
|
||||||
if response.status in [200, 301, 302]:
|
if response.status in [200, 301, 302, 460, 454]:
|
||||||
return response
|
return response
|
||||||
# 如果响应异常,处理失败计数
|
# 如果响应异常,处理失败计数
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user