全部版块 我的主页
论坛 提问 悬赏 求职 新闻 读书 功能一区 经管百科 爱问频道
537 0
2020-03-10
请问为什么我的代码运行不出结果又不报错?
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()}

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群