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
评论列表
文章目录