MCPcopy
hub / github.com/scrapy/scrapy / start_itemproc

Method start_itemproc

scrapy/core/scraper.py:465–478  ·  view source on GitHub ↗

Send *item* to the item pipelines for processing. *response* is the source of the item data. If the item does not come from response data, e.g. it was hard-coded, set it to ``None``.

(
        self, item: Any, *, response: Response | Failure | None
    )

Source from the content-addressed store, hash-verified

463 await self.start_itemproc_async(output, response=response)
464
465 def start_itemproc(
466 self, item: Any, *, response: Response | Failure | None
467 ) -> Deferred[None]: # pragma: no cover
468 """Send *item* to the item pipelines for processing.
469
470 *response* is the source of the item data. If the item does not come
471 from response data, e.g. it was hard-coded, set it to ``None``.
472 """
473 warnings.warn(
474 "Scraper.start_itemproc() is deprecated, use start_itemproc_async() instead",
475 ScrapyDeprecationWarning,
476 stacklevel=2,
477 )
478 return deferred_from_coro(self.start_itemproc_async(item, response=response))
479
480 async def start_itemproc_async(
481 self, item: Any, *, response: Response | Failure | None

Callers

nothing calls this directly

Calls 2

start_itemproc_asyncMethod · 0.95
deferred_from_coroFunction · 0.90

Tested by

no test coverage detected