檢查登入狀態

def active(self) -> bool:
        """
        檢查登入狀態
        """
        try:
            # 取得資料
            response = self.__session.get(
                self.__url + '/TopMenu', timeout=0.5, verify=False)
            soup = BeautifulSoup(response.text, 'html.parser')
            # 回傳是否為登入成功才看得到的網頁
            return soup.find('a').get_text().strip() == '線上考試'

        except requests.exceptions.Timeout:
            return None