Merge pull request #786 from zsiciarz/patch-1

Fixed Python syntax in tutorial.
This commit is contained in:
Mikhail Korobov 2014-07-04 14:45:45 +06:00
commit e29eec9c2a
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ As we've said before, each ``.xpath()`` call returns a list of selectors, so we
concatenate further ``.xpath()`` calls to dig deeper into a node. We are going to use
that property here, so::
for sel in response.xpath('//ul/li')
for sel in response.xpath('//ul/li'):
title = sel.xpath('a/text()').extract()
link = sel.xpath('a/@href').extract()
desc = sel.xpath('text()').extract()