'By Mukosame (https://github.com/mukosame)'

def get_gender(self):

    if (self.user_url == None):
        print "I'm    anonymous    user."
        return 'unknown'
    else:
        if (self.soup == None):
            self.parser()
        soup = self.soup
        try:
            gender = str(soup.find('span', class_='item    gender').i)
            if (gender == '<i    class="icon    icon-profile-female"></i>'):
                return 'female'
            else:
                return 'male'
        except:
            return 'unknown'
