mirror of https://github.com/scrapy/scrapy.git
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:
commit
0845a2567f
|
|
@ -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>`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue