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
8210fae25a
commit
dc6a495fee
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue