Support kwargs for response.xpath()

This commit is contained in:
Paul Tremberth 2016-12-09 17:58:38 +01:00
parent c305c46254
commit 0cf6344cc2
1 changed files with 2 additions and 2 deletions

View File

@ -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)