mirror of https://github.com/scrapy/scrapy.git
Support kwargs for response.xpath()
This commit is contained in:
parent
c305c46254
commit
0cf6344cc2
|
|
@ -111,8 +111,8 @@ class TextResponse(Response):
|
|||
self._cached_selector = Selector(self)
|
||||
return self._cached_selector
|
||||
|
||||
def xpath(self, query):
|
||||
return self.selector.xpath(query)
|
||||
def xpath(self, query, **kwargs):
|
||||
return self.selector.xpath(query, **kwargs)
|
||||
|
||||
def css(self, query):
|
||||
return self.selector.css(query)
|
||||
|
|
|
|||
Loading…
Reference in New Issue