MCPcopy
hub / github.com/scrapy/scrapy / _init_with_reactor

Method _init_with_reactor

scrapy/commands/shell.py:97–101  ·  view source on GitHub ↗
(self, crawler: Crawler)

Source from the content-addressed store, hash-verified

95 shell.start(url=url, redirect=not opts.no_redirect)
96
97 def _init_with_reactor(self, crawler: Crawler) -> None:
98 # Create the engine and run start_async() in the main thread
99 crawler.engine = crawler._create_engine()
100 _schedule_coro(crawler.engine.start_async(_start_request_processing=False))
101 self._start_crawler_thread()
102
103 def _init_without_reactor(self, crawler: Crawler) -> None:
104 # Create the engine and run start_async() in the event loop thread

Callers 1

runMethod · 0.95

Calls 4

_start_crawler_threadMethod · 0.95
_schedule_coroFunction · 0.90
_create_engineMethod · 0.80
start_asyncMethod · 0.80

Tested by

no test coverage detected