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

Method __init__

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

Source from the content-addressed store, hash-verified

343
344class CrawlerRunnerBase(ABC):
345 def __init__(self, settings: dict[str, Any] | Settings | None = None):
346 if isinstance(settings, dict) or settings is None:
347 settings = Settings(settings)
348 AddonManager.load_pre_crawler_settings(settings)
349 self.settings: Settings = settings
350 self.spider_loader: SpiderLoaderProtocol = get_spider_loader(settings)
351 self._crawlers: set[Crawler] = set()
352 self.bootstrap_failed = False
353
354 @property
355 def crawlers(self) -> set[Crawler]:

Callers

nothing calls this directly

Calls 3

SettingsClass · 0.90
get_spider_loaderFunction · 0.90

Tested by

no test coverage detected