mirror of https://github.com/scrapy/scrapy.git
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:
parent
ebef6d7c6d
commit
7082454f2a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue