fix another invalid xpath error

This commit is contained in:
hoatle 2015-10-07 15:51:12 +07:00 committed by Daniel Graña
parent ca8d60f267
commit 0a1366ed8d
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')
>>> sel.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