This commit is contained in:
guange 2019-01-25 16:05:05 +08:00
parent 5955efe77b
commit 41aa5ed3fe
1 changed files with 0 additions and 1 deletions

View File

@ -51,7 +51,6 @@ class JdSpider(scrapy.Spider):
def parse_spec(self, response): def parse_spec(self, response):
#spec #spec
pdb.set_trace()
cpu = response.xpath('//dt[text()="CPU型号"]/following-sibling::dd/text()').extract_first() cpu = response.xpath('//dt[text()="CPU型号"]/following-sibling::dd/text()').extract_first()
rom = response.xpath('//dt[text()="ROM"]/following-sibling::dd[2]/text()').extract_first() rom = response.xpath('//dt[text()="ROM"]/following-sibling::dd[2]/text()').extract_first()
ram = response.xpath('//dt[text()="RAM"]/following-sibling::dd[2]/text()').extract_first() ram = response.xpath('//dt[text()="RAM"]/following-sibling::dd[2]/text()').extract_first()