MCPcopy
hub / github.com/scrapy/scrapy / adapt_response

Method adapt_response

scrapy/spiders/feed.py:49–54  ·  view source on GitHub ↗

You can override this function in order to make any changes you want to into the feed before parsing it. This function must return a response.

(self, response: Response)

Source from the content-addressed store, hash-verified

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
51 to into the feed before parsing it. This function must return a
52 response.
53 """
54 return response
55
56 def parse_node(self, response: Response, selector: Selector) -> Any:
57 """This method must be overridden with your custom spider functionality"""

Callers 1

_parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected