Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/scrapy/scrapy
/ spider_closed
Method
spider_closed
scrapy/extensions/periodic_log.py:166–169 ·
view source on GitHub ↗
(self, spider: Spider, reason: str)
Source
from the content-addressed store, hash-verified
164
return
any(p in stat_name
for
p in include)
165
166
def
spider_closed(self, spider: Spider, reason: str) -> None:
167
self.log()
168
if
self.task and self.task.running:
169
self.task.stop()
Callers
nothing calls this directly
Calls
2
log
Method · 0.95
stop
Method · 0.45
Tested by
no test coverage detected