From 0cf6344cc22a193079ea1fd2fbe28187cc212c7a Mon Sep 17 00:00:00 2001 From: Paul Tremberth Date: Fri, 9 Dec 2016 17:58:38 +0100 Subject: [PATCH] Support kwargs for response.xpath() --- scrapy/http/response/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy/http/response/text.py b/scrapy/http/response/text.py index afa430329..5a6507aa8 100644 --- a/scrapy/http/response/text.py +++ b/scrapy/http/response/text.py @@ -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)