Scrapy: repeating request for 440 status code
up vote
1
down vote
favorite
Is there a way in scrapy how to repeat a request, if the response status code is 440?
Sometimes the server i am trying to scrape responds with 440 code and the I can´t scrape the data.
Thanks a lot!
python request scrapy web-crawler
add a comment |
up vote
1
down vote
favorite
Is there a way in scrapy how to repeat a request, if the response status code is 440?
Sometimes the server i am trying to scrape responds with 440 code and the I can´t scrape the data.
Thanks a lot!
python request scrapy web-crawler
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is there a way in scrapy how to repeat a request, if the response status code is 440?
Sometimes the server i am trying to scrape responds with 440 code and the I can´t scrape the data.
Thanks a lot!
python request scrapy web-crawler
Is there a way in scrapy how to repeat a request, if the response status code is 440?
Sometimes the server i am trying to scrape responds with 440 code and the I can´t scrape the data.
Thanks a lot!
python request scrapy web-crawler
python request scrapy web-crawler
asked Nov 10 at 14:12
HospiCZ
105
105
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Based on the scrapy documentation you can add and configure the RetryMiddleware
to behave the way you want.
The settings you will want to change are: RETRY_TIMES
and RETRY_HTTP_CODES
. Specially the second one where the defaults are: [500, 502, 503, 504, 408]
, so there you just need to add 440
to the list.
Check more details about the middleware here
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Based on the scrapy documentation you can add and configure the RetryMiddleware
to behave the way you want.
The settings you will want to change are: RETRY_TIMES
and RETRY_HTTP_CODES
. Specially the second one where the defaults are: [500, 502, 503, 504, 408]
, so there you just need to add 440
to the list.
Check more details about the middleware here
add a comment |
up vote
1
down vote
accepted
Based on the scrapy documentation you can add and configure the RetryMiddleware
to behave the way you want.
The settings you will want to change are: RETRY_TIMES
and RETRY_HTTP_CODES
. Specially the second one where the defaults are: [500, 502, 503, 504, 408]
, so there you just need to add 440
to the list.
Check more details about the middleware here
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Based on the scrapy documentation you can add and configure the RetryMiddleware
to behave the way you want.
The settings you will want to change are: RETRY_TIMES
and RETRY_HTTP_CODES
. Specially the second one where the defaults are: [500, 502, 503, 504, 408]
, so there you just need to add 440
to the list.
Check more details about the middleware here
Based on the scrapy documentation you can add and configure the RetryMiddleware
to behave the way you want.
The settings you will want to change are: RETRY_TIMES
and RETRY_HTTP_CODES
. Specially the second one where the defaults are: [500, 502, 503, 504, 408]
, so there you just need to add 440
to the list.
Check more details about the middleware here
answered Nov 10 at 15:30
dethos
1,087811
1,087811
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239804%2fscrapy-repeating-request-for-440-status-code%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown