MHRW.py 文件源码

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

项目:Crawling-SinaWeibo 作者: Uzumaki-C 项目源码 文件源码
def parse4(self, response):
        """ ????????????? """
        selector = Selector(response)
        text0 = selector.xpath('body/div[@class="u"]/div[@class="tip2"]').extract_first()
        if text0:
            num_follows = re.findall(u'\u5173\u6ce8\[(\d+)\]', text0)  # ???
            num_fans = re.findall(u'\u7c89\u4e1d\[(\d+)\]', text0)  # ???

            if num_follows and num_fans:
                self.degree_v = num_fans + num_follows
            else:
                self.degree_v = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号