请问为什么我的代码运行不出结果又不报错?
import scrapy
from scrapy import Spider
class CarbonSpider(Spider):
name='Carbon'
start_urls=['http://cerx.cn/dailynewsCN/index.htm']
def parse(self,response):
for Carbon_class in response.xpath('//div[@class="w96"]'):
print (Carbon_class.xpath('table/tbody/tr[1]/td[1]/strong/text()').extract_first())
yield{'title':Carbon_class.xpath('table/tbody/tr[1]/td[1]/strong/text()').extract_first()}