def get_report_info(report_url):
    r = requests.get(report_url)
    if (r.status_code != 200):
        return {}
    soup = BeautifulSoup(r.text, 'html.parser')
    last_update_str = soup.find('div', {'class': 'status-descr'}).text
    last_update_date = datetime.strptime(last_update_str, 'Last Update : %Y/%m/%d').date()
    now_utc_plus_8 = (datetime.utcnow() + timedelta(hours=8))
    now_date = datetime.strptime((now_utc_plus_8 - timedelta(days=1)).strftime('%Y/%m/%d'), '%Y/%m/%d').date()
    if (now_date != last_update_date):
        return {}
    data = {'status': soup.find('div', {'class': 'status-label'}).text}
    for li in soup.find('div', {'class': 'info'}).findAll('li'):
        if ('風險' in li.text):
            data['risk'] = li.text.split('：')[(- 1)]
        elif ('類型' in li.text):
            data['type'] = li.text.split('：')[(- 1)]
    return data
def get_report_info(report_url):
    r = requests.get(report_url)
    if (r.status_code != 200):
        return {}
    soup = BeautifulSoup(r.text, 'html.parser')
    last_update_str = soup.find('div', {'class': 'status-descr'}).text
    last_update_date = datetime.strptime(last_update_str, 'Last Update : %Y/%m/%d').date()
    now_utc_plus_8 = (datetime.utcnow() + timedelta(hours=8))
    now_date = datetime.strptime((now_utc_plus_8 - timedelta(days=1)).strftime('%Y/%m/%d'), '%Y/%m/%d').date()
    if (now_date != last_update_date):
        return {}
    data = {'status': soup.find('div', {'class': 'status-label'}).text}
    for li in soup.find('div', {'class': 'info'}).findAll('li'):
        if ('風險' in li.text):
            data['risk'] = li.text.split('：')[(- 1)]
        elif ('類型' in li.text):
            data['type'] = li.text.split('：')[(- 1)]
    return data