Added: HTTP status code 522/524 to retry.

This commit is contained in:
Pengyu Chen 2017-07-26 16:11:13 +08:00
parent 17bbd71433
commit 11a1f970b7
No known key found for this signature in database
GPG Key ID: E3353B0B8B3E8B49
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ REFERRER_POLICY = 'scrapy.spidermiddlewares.referer.DefaultReferrerPolicy'
RETRY_ENABLED = True
RETRY_TIMES = 2 # initial response + 2 retries = 3 requests
RETRY_HTTP_CODES = [500, 502, 503, 504, 408]
RETRY_HTTP_CODES = [500, 502, 503, 504, 522, 524, 408]
RETRY_PRIORITY_ADJUST = -1
ROBOTSTXT_OBEY = False