mirror of https://github.com/scrapy/scrapy.git
Merge pull request #786 from zsiciarz/patch-1
Fixed Python syntax in tutorial.
This commit is contained in:
commit
e29eec9c2a
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue