MCPcopy
hub / github.com/scrapy/scrapy / jmespath

Method jmespath

scrapy/http/response/text.py:155–160  ·  view source on GitHub ↗
(self, query: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

153 return self._cached_selector
154
155 def jmespath(self, query: str, **kwargs: Any) -> SelectorList:
156 if not hasattr(self.selector, "jmespath"):
157 raise AttributeError(
158 "Please install parsel >= 1.8.1 to get jmespath support"
159 )
160 return cast("SelectorList", self.selector.jmespath(query, **kwargs))
161
162 def xpath(self, query: str, **kwargs: Any) -> SelectorList:
163 return cast("SelectorList", self.selector.xpath(query, **kwargs))

Callers 5

test_json_has_htmlMethod · 0.95
test_html_has_jsonMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_json_has_htmlMethod · 0.76
test_html_has_jsonMethod · 0.36