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
a046ce843a
commit
6d193e4dab
|
|
@ -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