MCPcopy
hub / github.com/scrapy/scrapy / _sqfactory

Method _sqfactory

scrapy/pqueues.py:158–164  ·  view source on GitHub ↗
(self, key: int)

Source from the content-addressed store, hash-verified

156 )
157
158 def _sqfactory(self, key: int) -> QueueProtocol:
159 assert self._start_queue_cls is not None
160 return build_from_crawler(
161 self._start_queue_cls,
162 self.crawler,
163 f"{self.key}/{key}s",
164 )
165
166 def priority(self, request: Request) -> int:
167 return -request.priority

Callers 2

init_priosMethod · 0.95
pushMethod · 0.95

Calls 1

build_from_crawlerFunction · 0.90

Tested by

no test coverage detected