MCPcopy
hub / github.com/scrapy/scrapy / stats

Method stats

scrapy/pqueues.py:264–265  ·  view source on GitHub ↗
(self, possible_slots: Iterable[str])

Source from the content-addressed store, hash-verified

262 self.downloader: Downloader = crawler.engine.downloader
263
264 def stats(self, possible_slots: Iterable[str]) -> list[tuple[int, str]]:
265 return [(self._active_downloads(slot), slot) for slot in possible_slots]
266
267 def get_slot_key(self, request: Request) -> str:
268 return self.downloader.get_slot_key(request)

Callers 2

popMethod · 0.80
peekMethod · 0.80

Calls 1

_active_downloadsMethod · 0.95

Tested by

no test coverage detected