'æåŒurlç¬åéé¢çäžªäººID'

def parse_relationship(self, response):

    selector = Selector(response)
    if ('/follow' in response.url):
        ID = re.findall('(\\d+)/follow', response.url)[0]
        flag = True
    else:
        ID = re.findall('(\\d+)/fans', response.url)[0]
        flag = False
    urls = selector.xpath('//a[text()="\xe5\x85\xb3\xe6\xb3\xa8\xe4\xbb\x96"    or    text()="\xe5\x85\xb3\xe6\xb3\xa8\xe5\xa5\xb9"]/@href'.decode('utf')).extract()
    uids = re.findall('uid=(\\d+)', ';'.join(urls), re.S)
    for uid in uids:
        relationshipsItem = RelationshipsItem()
        relationshipsItem['Host1'] = (ID if flag else uid)
        relationshipsItem['Host2'] = (uid if flag else ID)
        (yield relationshipsItem)
        (yield Request(url=('https://weibo.cn/%s/info' % uid), callback=self.parse_information))
    next_url = selector.xpath('//a[text()="\xe4\xb8\x8b\xe9\xa1\xb5"]/@href'.decode('utf8')).extract()
    if next_url:
        (yield Request(url=(self.host + next_url[0]), callback=self.parse_relationship, dont_filter=True))
