Update docs/topics/practices.rst

Co-authored-by: Andrey Rakhmatullin <wrar@wrar.name>
This commit is contained in:
Laerte Pereira 2024-05-23 07:00:35 -03:00 committed by GitHub
parent 17e623cf0c
commit 8ec67ca230
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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())