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

Method __init__

scrapy/spiderloader.py:57–62  ·  view source on GitHub ↗
(self, settings: BaseSettings)

Source from the content-addressed store, hash-verified

55 """
56
57 def __init__(self, settings: BaseSettings):
58 self.spider_modules: list[str] = settings.getlist("SPIDER_MODULES")
59 self.warn_only: bool = settings.getbool("SPIDER_LOADER_WARN_ONLY")
60 self._spiders: dict[str, type[Spider]] = {}
61 self._found: defaultdict[str, list[tuple[str, str]]] = defaultdict(list)
62 self._load_all_spiders()
63
64 def _check_name_duplicates(self) -> None:
65 dupes = []

Callers

nothing calls this directly

Calls 3

_load_all_spidersMethod · 0.95
getlistMethod · 0.45
getboolMethod · 0.45

Tested by

no test coverage detected