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.
This commit is contained in:
Lele 2016-03-18 03:30:31 +01:00 committed by Mikhail Korobov
parent ebef6d7c6d
commit 7082454f2a
1 changed files with 1 additions and 1 deletions

View File

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