MCPcopy
hub / github.com/scrapy/scrapy / xpath

Method xpath

scrapy/http/response/__init__.py:214–218  ·  view source on GitHub ↗

Shortcut method implemented only by responses whose content is text (subclasses of TextResponse).

(self, *a: Any, **kw: Any)

Source from the content-addressed store, hash-verified

212 raise NotSupported("Response content isn't text")
213
214 def xpath(self, *a: Any, **kw: Any) -> SelectorList:
215 """Shortcut method implemented only by responses whose content
216 is text (subclasses of TextResponse).
217 """
218 raise NotSupported("Response content isn't text")
219
220 def follow(
221 self,

Callers

nothing calls this directly

Calls 1

NotSupportedClass · 0.90

Tested by

no test coverage detected