取得公布欄訊息列表

def get_notice(self) -> dict:
        """
        取得公布欄訊息列表
        """
        try:
            # 取得資料
            response = self.__session.get(
                self.__url + '/MessageBoard', timeout=0.5, verify=False)
            soup = BeautifulSoup(response.text, 'html.parser')
            # 整理公布欄訊息列表
            notices = {}
            for tag in soup.find_all('tr'):
                # 跳過標題列
                if tag.find('a') != None:
                    title = tag.find('a').get_text().strip()
                    date = tag.find_all('td')[1].get_text().strip()
                    notices[date] = title
            # 回傳結果
            return notices

        except requests.exceptions.Timeout:
            return {"Timeout": "Timeout"}