From 41aa5ed3fe8d3fe6f6db20f16eadc624e595e9c8 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Fri, 25 Jan 2019 16:05:05 +0800 Subject: [PATCH] 1 --- chapter1/crawler/taobao/spiders/jd.py | 1 - 1 file changed, 1 deletion(-) diff --git a/chapter1/crawler/taobao/spiders/jd.py b/chapter1/crawler/taobao/spiders/jd.py index 86f3a42..88d394e 100644 --- a/chapter1/crawler/taobao/spiders/jd.py +++ b/chapter1/crawler/taobao/spiders/jd.py @@ -51,7 +51,6 @@ class JdSpider(scrapy.Spider): def parse_spec(self, response): #spec - pdb.set_trace() 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() ram = response.xpath('//dt[text()="RAM"]/following-sibling::dd[2]/text()').extract_first()