Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Update docs/topics/practices.rst

Laerte Pereira8ec67ca230a6
diff --git a/docs/topics/practices.rst b/docs/topics/practices.rst
index 64b3b6e81..ee484e63f 100644
--- a/docs/topics/practices.rst
+++ b/docs/topics/practices.rst
@@ -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())