MCPcopy
hub / github.com/scrapy/scrapy / main

Function main

tests/AsyncCrawlerRunner/multi_parallel.py:19–24  ·  view source on GitHub ↗
(reactor)

Source from the content-addressed store, hash-verified

17
18@deferred_f_from_coro_f
19async def main(reactor):
20 configure_logging()
21 runner = AsyncCrawlerRunner()
22 runner.crawl(NoRequestsSpider)
23 runner.crawl(NoRequestsSpider)
24 await runner.join()
25
26
27install_reactor("twisted.internet.asyncioreactor.AsyncioSelectorReactor")

Callers

nothing calls this directly

Calls 4

crawlMethod · 0.95
joinMethod · 0.95
configure_loggingFunction · 0.90
AsyncCrawlerRunnerClass · 0.90

Tested by

no test coverage detected