add 460 454 error

This commit is contained in:
cooper 2024-06-18 21:37:45 +08:00
parent 6edc5e0768
commit adf61f2a9e

View File

@ -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: