From c90959618647eaf28d9a38e2c10b4f5dc7059c08 Mon Sep 17 00:00:00 2001 From: Jason Gors Date: Thu, 18 Jun 2015 15:06:13 -0400 Subject: [PATCH] fixed the size to match the above xpath selector text for getting size --- docs/intro/overview.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro/overview.rst b/docs/intro/overview.rst index 3f9f24efd..9ec2854de 100644 --- a/docs/intro/overview.rst +++ b/docs/intro/overview.rst @@ -144,7 +144,7 @@ Finally, here's the spider code:: torrent['url'] = response.url torrent['name'] = response.xpath("//h1/text()").extract() torrent['description'] = response.xpath("//div[@id='description']").extract() - torrent['size'] = response.xpath("//div[@id='info-left']/p[2]/text()[2]").extract() + torrent['size'] = response.xpath("//div[@id='specifications']/p[2]/text()[2]").extract() return torrent The ``TorrentItem`` class is :ref:`defined above `.