MCPcopy
hub / github.com/scrapy/scrapy / set_value

Method set_value

scrapy/statscollectors.py:65–66  ·  view source on GitHub ↗
(self, key: str, value: Any, spider: Spider | None = None)

Source from the content-addressed store, hash-verified

63 return self._stats
64
65 def set_value(self, key: str, value: Any, spider: Spider | None = None) -> None:
66 self._stats[key] = value
67
68 def set_stats(self, stats: StatsT, spider: Spider | None = None) -> None:
69 self._stats = stats

Callers 12

test_collectorMethod · 0.95
spider_closedMethod · 0.45
spider_openedMethod · 0.45
spider_closedMethod · 0.45
spider_closedMethod · 0.45
engine_startedMethod · 0.45
_check_limitMethod · 0.45
_check_warningMethod · 0.45
setup_methodMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_collectorMethod · 0.76
setup_methodMethod · 0.36