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

Method __init__

scrapy/spiders/crawl.py:102–113  ·  view source on GitHub ↗
(self, *a: Any, **kw: Any)

Source from the content-addressed store, hash-verified

100 _follow_links: bool
101
102 def __init__(self, *a: Any, **kw: Any):
103 super().__init__(*a, **kw)
104 self._compile_rules()
105 if method_is_overridden(self.__class__, CrawlSpider, "_parse_response"):
106 warnings.warn(
107 "The CrawlSpider._parse_response method, which the "
108 f"{global_object_name(self.__class__)} class overrides, is "
109 "deprecated: it will be removed in future Scrapy releases. "
110 "Please override the CrawlSpider.parse_with_rules method "
111 "instead.",
112 stacklevel=2,
113 )
114
115 def _parse(self, response: Response, **kwargs: Any) -> Any:
116 return self.parse_with_rules(

Callers

nothing calls this directly

Calls 4

_compile_rulesMethod · 0.95
method_is_overriddenFunction · 0.90
global_object_nameFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected