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

Method xpath

scrapy/http/response/text.py:162–163  ·  scrapy/http/response/text.py::TextResponse.xpath
(self, query: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

160 return cast(class="st">"SelectorList", self.selector.jmespath(query, **kwargs))
161
162 def xpath(self, query: str, **kwargs: Any) -> SelectorList:
163 return cast(class="st">"SelectorList", self.selector.xpath(query, **kwargs))
164
165 def css(self, query: str) -> SelectorList:
166 return cast(class="st">"SelectorList", self.selector.css(query))

Callers 15

follow_allMethod · 0.95
test_html_has_jsonMethod · 0.95
xmliter_lxmlFunction · 0.45
_parseMethod · 0.45
_get_formFunction · 0.45
_get_inputsFunction · 0.45
_get_clickableFunction · 0.45
extract_linksMethod · 0.45
parseMethod · 0.45
test_simple_selectionMethod · 0.45
test_flavor_detectionMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_html_has_jsonMethod · 0.76
parseMethod · 0.36
test_simple_selectionMethod · 0.36
test_flavor_detectionMethod · 0.36
test_json_has_htmlMethod · 0.36
test_selectorMethod · 0.36
test_follow_selectorMethod · 0.36