MCPcopy
hub / github.com/scrapy/scrapy / process_results

Method process_results

scrapy/spiders/feed.py:37–47  ·  view source on GitHub ↗

This overridable method is called for each result (item or request) returned by the spider, and it's intended to perform any last time processing required before returning the results to the framework core, for example setting the item GUIDs. It receives a list of results and

(
        self, response: Response, results: Iterable[Any]
    )

Source from the content-addressed store, hash-verified

35 namespaces: Sequence[tuple[str, str]] = ()
36
37 def process_results(
38 self, response: Response, results: Iterable[Any]
39 ) -> Iterable[Any]:
40 """This overridable method is called for each result (item or request)
41 returned by the spider, and it's intended to perform any last time
42 processing required before returning the results to the framework core,
43 for example setting the item GUIDs. It receives a list of results and
44 the response which originated that results. It must return a list of
45 results (items or requests).
46 """
47 return results
48
49 def adapt_response(self, response: Response) -> Response:
50 """You can override this function in order to make any changes you want

Callers 1

parse_nodesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected