def clear_time(time):
    now_year = datetime.datetime.now().year
    if ('发布于' in time):
        time = time.replace('发布于', (str(now_year) + '-'))
        time = time.replace('月', '-')
        time = time.replace('日', '')
        if (time.find('昨天') > 0):
            time = str((datetime.date.today() - datetime.timedelta(days=1)))
        elif (time.find(':') > 0):
            time = str(datetime.date.today())
    return time
def clear_time(time):
    now_year = datetime.datetime.now().year
    if ('发布于' in time):
        time = time.replace('发布于', (str(now_year) + '-'))
        time = time.replace('月', '-')
        time = time.replace('日', )
        if (time.find('昨天') > 0):
            time = str((datetime.date.today() - datetime.timedelta(days=1)))
        elif (time.find(':') > 0):
            time = str(datetime.date.today())
    return time