''

def parse(self, response):

    selector = Selector(response)
    ID = re.findall('weibo\\.cn/(\\d+)', response.url)[0]
    tweets = selector.xpath('body/div[@class="c"    and    @id]')
    for tweet in tweets:
        tweetsItems = TweetsItem()
        id = tweet.xpath('@id').extract_first()
        content = tweet.xpath('div/span[@class="ctt"]/text()').extract_first()
        cooridinates = tweet.xpath('div/a/@href').extract_first()
        like = re.findall(u'\u8d5e\\[(\\d+)\\]', tweet.extract())
        transfer = re.findall(u'\u8f6c\u53d1\\[(\\d+)\\]', tweet.extract())
        comment = re.findall(u'\u8bc4\u8bba\\[(\\d+)\\]', tweet.extract())
        others = tweet.xpath('div/span[@class="ct"]/text()').extract_first()
        tweetsItems['_id'] = ((ID + '-') + id)
        tweetsItems['ID'] = ID
        if content:
            tweetsItems['Content'] = content.strip(u'[\u4f4d\u7f6e]')
        if cooridinates:
            cooridinates = re.findall('center=([\\d|.|,]+)', cooridinates)
            if cooridinates:
                tweetsItems['Co_oridinates'] = cooridinates[0]
        if like:
            tweetsItems['Like'] = int(like[0])
        if transfer:
            tweetsItems['Transfer'] = int(transfer[0])
        if comment:
            tweetsItems['Comment'] = int(comment[0])
        if others:
            others = others.split(u'\u6765\u81ea')
            tweetsItems['PubTime'] = others[0]
            if (len(others) == 2):
                tweetsItems['Tools'] = others[1]
        (yield tweetsItems)
    url_next = selector.xpath(u'body/div[@class="pa"    and    @id="pagelist"]/form/div/a[text()="\u4e0b\u9875"]/@href').extract()
    if url_next:
        (yield Request(url=(self.host + url_next[0]), callback=self.parse))
    else:
        urlFollows = ('http://weibo.cn/%s/follow' % ID)
        idFollows = self.getNextID(urlFollows, response.request.cookies)
        for ID in idFollows:
            url = ('http://weibo.cn/%s/profile?filter=1&page=1' % ID)
            (yield Request(url=url, callback=self.parse))
