MCPcopy
hub / github.com/scrapy/scrapy / __init__

Method __init__

scrapy/crawler.py:413–419  ·  view source on GitHub ↗
(self, settings: dict[str, Any] | Settings | None = None)

Source from the content-addressed store, hash-verified

411 """
412
413 def __init__(self, settings: dict[str, Any] | Settings | None = None):
414 super().__init__(settings)
415 if not self.settings.getbool("TWISTED_REACTOR_ENABLED"):
416 raise RuntimeError(
417 f"{type(self).__name__} doesn't support TWISTED_REACTOR_ENABLED=False."
418 )
419 self._active: set[Deferred[None]] = set()
420
421 def crawl(
422 self,

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
getboolMethod · 0.45

Tested by

no test coverage detected