MCPcopy
hub / github.com/scrapy/scrapy / extension

Function extension

tests/test_extension_periodic_log.py:68–70  ·  view source on GitHub ↗
(settings: dict[str, Any] | None = None)

Source from the content-addressed store, hash-verified

66
67
68def extension(settings: dict[str, Any] | None = None) -> CustomPeriodicLog:
69 crawler = get_crawler(MetaSpider, settings)
70 return CustomPeriodicLog.from_crawler(crawler)
71
72
73class TestPeriodicLog:

Callers 2

emulateMethod · 0.85

Calls 2

get_crawlerFunction · 0.90
from_crawlerMethod · 0.45

Tested by

no test coverage detected