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()