From 0466e8cb7a8fb23455d1821ae9ffa7d3d17f48b1 Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Fri, 4 Jul 2014 10:38:01 +0200 Subject: [PATCH] Fixed Python syntax in tutorial. --- docs/intro/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index 604596f72b6..a4248d7aa13 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -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()