MCPcopy
hub / github.com/scrapy/scrapy / from_crawler

Method from_crawler

scrapy/core/downloader/handlers/base.py:24–25  ·  view source on GitHub ↗
(cls, crawler: Crawler)

Source from the content-addressed store, hash-verified

22
23 @classmethod
24 def from_crawler(cls, crawler: Crawler) -> Self:
25 return cls(crawler)
26
27 @abstractmethod
28 async def download_request(self, request: Request) -> Response:

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected