This topic created in 2471 days ago, the information mentioned may be changed or developed.
scrapy 中,如何使用非阻塞暂停?
比如:
有函数 parse(...)
然后自己编写的 parse1(...)、parse2(...)。。。
在 parse1(...) 的函数体中,想要有暂停操作,我用的 time.sleep 后发现整个程序全局都暂停了,
请问如何在 scrapy 中使用非阻塞暂停
 |
|
1
AlloVince Aug 5, 2019
未验证,可以尝试 yield asyncio.sleep(5)
|