'æåäžªäººä¿¡æ¯2'

def parse1(self, response):

    informationItems = response.meta['item']
    selector = Selector(response)
    text1 = ';'.join(selector.xpath('body/div[@class="c"]/text()').extract())
    nickname = re.findall(u'\u6635\u79f0[:|\uff1a](.*?);', text1)
    gender = re.findall(u'\u6027\u522b[:|\uff1a](.*?);', text1)
    place = re.findall(u'\u5730\u533a[:|\uff1a](.*?);', text1)
    signature = re.findall(u'\u7b80\u4ecb[:|\uff1a](.*?);', text1)
    birthday = re.findall(u'\u751f\u65e5[:|\uff1a](.*?);', text1)
    sexorientation = re.findall(u'\u6027\u53d6\u5411[:|\uff1a](.*?);', text1)
    marriage = re.findall(u'\u611f\u60c5\u72b6\u51b5[:|\uff1a](.*?);', text1)
    url = re.findall(u'\u4e92\u8054\u7f51[:|\uff1a](.*?);', text1)
    if nickname:
        informationItems['NickName'] = nickname[0]
    if gender:
        informationItems['Gender'] = gender[0]
    if place:
        place = place[0].split('    ')
        informationItems['Province'] = place[0]
        if (len(place) > 1):
            informationItems['City'] = place[1]
    if signature:
        informationItems['Signature'] = signature[0]
    if birthday:
        try:
            birthday = datetime.datetime.strptime(birthday[0], '%Y-%m-%d')
            informationItems['Birthday'] = (birthday - datetime.timedelta(hours=8))
        except Exception:
            pass
    if sexorientation:
        if (sexorientation[0] == gender[0]):
            informationItems['Sex_Orientation'] = 'gay'
        else:
            informationItems['Sex_Orientation'] = 'Heterosexual'
    if marriage:
        informationItems['Marriage'] = marriage[0]
    if url:
        informationItems['URL'] = url[0]
    (yield informationItems)
