MCPcopy
hub / github.com/scrapy/scrapy / log_crawler_stats

Method log_crawler_stats

scrapy/extensions/periodic_log.py:146–152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

144 return {"time": time}
145
146 def log_crawler_stats(self) -> dict[str, Any]:
147 stats = {
148 k: v
149 for k, v in self.stats._stats.items()
150 if self.param_allowed(k, self.ext_stats_include, self.ext_stats_exclude)
151 }
152 return {"stats": stats}
153
154 def param_allowed(
155 self, stat_name: str, include: Sequence[str], exclude: Sequence[str]

Callers 2

logMethod · 0.95
emulateMethod · 0.80

Calls 2

param_allowedMethod · 0.95
itemsMethod · 0.80

Tested by 1

emulateMethod · 0.64