fix
This commit is contained in:
parent
d5ee8173e4
commit
eb19dd5cf9
@ -24,7 +24,7 @@ USER_AGENT = UserAgent().random
|
|||||||
# Obey robots.txt rules
|
# Obey robots.txt rules
|
||||||
ROBOTSTXT_OBEY = False
|
ROBOTSTXT_OBEY = False
|
||||||
|
|
||||||
HTTPERROR_ALLOWED_CODES = [ 200 , 403]
|
HTTPERROR_ALLOWED_CODES = [ 200 , 403, 301, 302]
|
||||||
# Configure maximum concurrent requests performed by Scrapy (default: 16)
|
# Configure maximum concurrent requests performed by Scrapy (default: 16)
|
||||||
CONCURRENT_REQUESTS = 16
|
CONCURRENT_REQUESTS = 16
|
||||||
|
|
||||||
@ -39,6 +39,7 @@ COMIC_INFO_XML_STORE = IMAGES_STORE
|
|||||||
# 随机化下载延迟
|
# 随机化下载延迟
|
||||||
# RANDOMIZE_DOWNLOAD_DELAY = True
|
# RANDOMIZE_DOWNLOAD_DELAY = True
|
||||||
#重试
|
#重试
|
||||||
|
DOWNLOAD_DELAY = 1 # 每次请求间隔2秒
|
||||||
# 增加下载超时时间
|
# 增加下载超时时间
|
||||||
DOWNLOAD_TIMEOUT = 30 # 30秒
|
DOWNLOAD_TIMEOUT = 30 # 30秒
|
||||||
# 增加重试之间的延迟
|
# 增加重试之间的延迟
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user