MCPcopy
hub / github.com/scrapy/scrapy / get_value

Method get_value

scrapy/statscollectors.py:57–60  ·  scrapy/statscollectors.py::StatsCollector.get_value
(
        self, key: str, default: Any = None, spider: Spider | None = None
    )

Source from the content-addressed store, hash-verified

55 return original_attr
56
57 def get_value(
58 self, key: str, default: Any = None, spider: Spider | None = None
59 ) -> Any:
60 return self._stats.get(key, default)
61
62 def get_stats(self, spider: Spider | None = None) -> StatsT:
63 return self._stats

Calls 1

getMethod · 0.45

Tested by 15

test_collectorMethod · 0.76
_testMethod · 0.36
startMethod · 0.36
_test_spiderMethod · 0.36
test_logMethod · 0.36