mirror of https://github.com/scrapy/scrapy.git
minor selectors doc fix
This commit is contained in:
parent
6eb2609d1e
commit
9baa6bb2a8
|
|
@ -194,7 +194,7 @@ inside ``<div>`` elements::
|
|||
|
||||
This is the proper way to do it (note the dot prefixing the ``.//p`` XPath)::
|
||||
|
||||
>>> for p in divs.x('//p') # extracts all <p> inside
|
||||
>>> for p in divs.x('.//p') # extracts all <p> inside
|
||||
>>> print p.extract()
|
||||
|
||||
Another common case would be to extract all direct ``<p>`` children::
|
||||
|
|
|
|||
Loading…
Reference in New Issue