MCPcopy
hub / github.com/scrapy/scrapy / _create_spider

Method _create_spider

scrapy/crawler.py:230–231  ·  view source on GitHub ↗
(self, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

228 raise
229
230 def _create_spider(self, *args: Any, **kwargs: Any) -> Spider:
231 return self.spidercls.from_crawler(self, *args, **kwargs)
232
233 def _create_engine(self) -> ExecutionEngine:
234 return ExecutionEngine(self, lambda _: self.stop_async())

Callers 15

crawlMethod · 0.95
crawl_asyncMethod · 0.95
_open_spiderMethod · 0.80
setup_methodMethod · 0.80
mwMethod · 0.80
mwMethod · 0.80
mwMethod · 0.80
setup_methodMethod · 0.80
_get_processed_startMethod · 0.80
setup_methodMethod · 0.80

Calls 1

from_crawlerMethod · 0.45

Tested by 15

setup_methodMethod · 0.64
mwMethod · 0.64
mwMethod · 0.64
mwMethod · 0.64
setup_methodMethod · 0.64
_get_processed_startMethod · 0.64
setup_methodMethod · 0.64
get_mwmanMethod · 0.64
setup_methodMethod · 0.64
test_paramsFunction · 0.64