MCPcopy
hub / github.com/scrapy/scrapy / get_crawler

Function get_crawler

tests/test_extension_throttle.py:22–25  ·  view source on GitHub ↗
(settings=None, spidercls=None)

Source from the content-addressed store, hash-verified

20
21
22def get_crawler(settings=None, spidercls=None):
23 settings = settings or {}
24 settings["AUTOTHROTTLE_ENABLED"] = True
25 return _get_crawler(settings_dict=settings, spidercls=spidercls)
26
27
28@pytest.mark.parametrize(

Callers 15

setup_methodMethod · 0.90
_assert_request_no3xxMethod · 0.90
setup_methodMethod · 0.90
setup_methodMethod · 0.90
setup_methodMethod · 0.90
test_show_messagesMethod · 0.90
test_skip_messagesMethod · 0.90
_testMethod · 0.90
_create_crawlerMethod · 0.90
extensionFunction · 0.90
mwMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected