Merge pull request #1311 from jgors/0.24

fixed the size to match the above xpath selector text for getting size
This commit is contained in:
Daniel Graña 2015-06-23 19:51:12 -03:00
commit 0845a2567f
1 changed files with 1 additions and 1 deletions

View File

@ -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 <intro-overview-item>`.