MCPcopy
hub / github.com/scrapy/scrapy / build_from_crawler

Function build_from_crawler

scrapy/utils/misc.py:176–182  ·  view source on GitHub ↗
(
    objcls: SupportsFromCrawler[_T_co, _P],
    crawler: Crawler,
    /,
    *args: _P.args,
    **kwargs: _P.kwargs,
)

Source from the content-addressed store, hash-verified

174
175@overload
176def build_from_crawler(
177 objcls: SupportsFromCrawler[_T_co, _P],
178 crawler: Crawler,
179 /,
180 *args: _P.args,
181 **kwargs: _P.kwargs,
182) -> _T_co: ...
183
184
185@overload

Callers 15

from_crawlerMethod · 0.90
load_settingsMethod · 0.90
_apply_settingsMethod · 0.90
_setup_reactorMethod · 0.90
qfactoryMethod · 0.90
_sqfactoryMethod · 0.90
from_crawlerMethod · 0.90
_mqMethod · 0.90
_dqMethod · 0.90
open_spider_asyncMethod · 0.90
_load_handlerMethod · 0.90

Calls 1

from_crawlerMethod · 0.45

Tested by 15

test_asyncMethod · 0.72
test_redirect_refererMethod · 0.72
test_warning_subclassFunction · 0.72
get_dhMethod · 0.72
get_dhMethod · 0.72
get_dhMethod · 0.72
get_dhMethod · 0.72
test_pop_orderFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…