From 92b4096e2c840e899f9c8bb1ff4a5bde4f58187c Mon Sep 17 00:00:00 2001 From: Lei Ye <41333369@qq.com> Date: Sun, 10 Dec 2023 14:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=E4=BF=AE=E5=A4=8D=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=88=97=E8=A1=A8=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [BUG反馈] #308 似乎是超星返回的HTML结构有变化,在我的界面修改后成功读取,没有其他账号无法做更多测试 --- api/decode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/decode.py b/api/decode.py index 15c3828..7b8e423 100644 --- a/api/decode.py +++ b/api/decode.py @@ -8,7 +8,7 @@ def decode_course_list(_text): logger.trace("开始解码课程列表...") _soup = BeautifulSoup(_text, "lxml") - _raw_courses = _soup.select("li.course") + _raw_courses = _soup.select("div.course") _course_list = list() for course in _raw_courses: if not course.select_one("a.not-open-tip"):