fix another invalid xpath error

This commit is contained in:
hoatle 2015-10-07 15:51:12 +07:00
parent 4e66955411
commit 2869cf8dde
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