From 7082454f2af7b7a3c881c5fdc8ac9c03b595e18d Mon Sep 17 00:00:00 2001 From: Lele Date: Fri, 18 Mar 2016 03:30:31 +0100 Subject: [PATCH] Changed sel. to response. for clarity Changed sel. to response. to comply with the rest of the examples in the same section, to avoid confusion. --- docs/topics/selectors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/selectors.rst b/docs/topics/selectors.rst index 3c5c170a3..3a0695568 100644 --- a/docs/topics/selectors.rst +++ b/docs/topics/selectors.rst @@ -151,7 +151,7 @@ It returns ``None`` if no element was found: A default return value can be provided as an argument, to be used instead of ``None``: - >>> sel.xpath('//div[@id="not-exists"]/text()').extract_first(default='not-found') + >>> response.xpath('//div[@id="not-exists"]/text()').extract_first(default='not-found') 'not-found' Notice that CSS selectors can select text or attribute nodes using CSS3