Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix another invalid xpath error
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
docs/topics/selectors.rst
|
@@ -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 |
|
|