mirror of https://github.com/scrapy/scrapy.git
Update docs/topics/practices.rst
Co-authored-by: Andrey Rakhmatullin <wrar@wrar.name>
This commit is contained in:
parent
17e623cf0c
commit
8ec67ca230
|
|
@ -134,6 +134,7 @@ Same example but using a non-default reactor, it's only necessary call
|
|||
install_reactor("twisted.internet.asyncioreactor.AsyncioSelectorReactor")
|
||||
runner = CrawlerRunner()
|
||||
d = runner.crawl(MySpider)
|
||||
|
||||
from twisted.internet import reactor
|
||||
|
||||
d.addBoth(lambda _: reactor.stop())
|
||||
|
|
|
|||
Loading…
Reference in New Issue