Skip to content

Commit

Permalink
Merge pull request #21 from hoatle/docs-fixes
Browse files Browse the repository at this point in the history
Docs fixes
  • Loading branch information
kmike committed Oct 8, 2015
2 parents ae562c9 + befb08e commit 5894076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ Example::
[u'Hello', u'Parsel']
>>>
>>> for e in sel.css('ul > li'):
print(e.xpath('.//a/@href')).extract_first()
print(e.xpath('.//a/@href').extract_first())
http://example.com
http://scrapy.org
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ If you want to extract only first matched element, you can call the selector ``.

It returns ``None`` if no element was found::

>>> selector.xpath('//div/[id="not-exists"]/text()').extract_first() is None
>>> selector.xpath('//div[@id="not-exists"]/text()').extract_first() is None
True

Notice that CSS selectors can select text or attribute nodes using CSS3
Expand Down

0 comments on commit 5894076

Please sign in to comment.