M
M
molodoy_arsen2021-06-20 00:59:40
Python
molodoy_arsen, 2021-06-20 00:59:40

How to pause scrapy?

After a certain action, for example, after finding a captcha, you need to pause the spider for n seconds, and then continue parsing. Is it possible to implement this? If yes, please write how

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Morrowind, 2021-06-20
@molodoy_arsen

Hello.
Maybe the time module will satisfy you?
It is possible to call Time.sleep(2) and run the code for 2 seconds.
More here.
https://python-scripts.com/sleep

S
sergeyfilippov4, 2021-06-20
@sergeyfilippov4

input()where you need a break

D
Dmitry, 2021-06-20
@LazyTalent

Look here , maybe it will help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question