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

Method from_crawler

tests/spiders.py:520–523  ·  view source on GitHub ↗
(cls, crawler, *args, **kwargs)

Source from the content-addressed store, hash-verified

518
519 @classmethod
520 def from_crawler(cls, crawler, *args, **kwargs):
521 spider = super().from_crawler(crawler, *args, **kwargs)
522 crawler.signals.connect(spider.bytes_received, signals.bytes_received)
523 return spider
524
525 async def start(self):
526 body = b"a" * self.full_response_length

Callers 1

from_crawlerMethod · 0.45

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected