Skip to content

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

Update docs/topics/practices.rst

Laerte Pereiradc6a495fee41
diff --git a/docs/topics/practices.rst b/docs/topics/practices.rst
index 710be7aa2..cec098012 100644
--- a/docs/topics/practices.rst
+++ b/docs/topics/practices.rst
@@ -106,6 +106,7 @@ reactor after ``MySpider`` has finished running.
runner = CrawlerRunner()
d = runner.crawl(MySpider)
+
from twisted.internet import reactor
d.addBoth(lambda _: reactor.stop())