chsi.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:gaokao 作者: EasyData 项目源码 文件源码
def parse_jianjie(self, response):

        item = response.meta['item']
        item['intro'] = response.xpath(u'//div[@class="schInfoSubT" and a/@name="2"]/following-sibling::div[1]').extract_first()

        for link in LinkExtractor(restrict_xpaths=u'//ul[@id="topNav"]//a[.="????"]').extract_links(response):
            yield Request(link.url, meta={'item': item}, callback=self.parse_zhuanye)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号