Skip to content

Commit 0845a25

Browse files
committed
Merge pull request scrapy#1311 from jgors/0.24
fixed the size to match the above xpath selector text for getting size
2 parents cd0c2aa + c909596 commit 0845a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/intro/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Finally, here's the spider code::
144144
torrent['url'] = response.url
145145
torrent['name'] = response.xpath("//h1/text()").extract()
146146
torrent['description'] = response.xpath("//div[@id='description']").extract()
147-
torrent['size'] = response.xpath("//div[@id='info-left']/p[2]/text()[2]").extract()
147+
torrent['size'] = response.xpath("//div[@id='specifications']/p[2]/text()[2]").extract()
148148
return torrent
149149

150150
The ``TorrentItem`` class is :ref:`defined above <intro-overview-item>`.

0 commit comments

Comments
 (0)