Skip to content

Commit

Permalink
🐛修复课程列表无法识别
Browse files Browse the repository at this point in the history
[BUG反馈] #308 
似乎是超星返回的HTML结构有变化,在我的界面修改后成功读取,没有其他账号无法做更多测试
  • Loading branch information
41369ly authored and Samueli924 committed Dec 10, 2023
1 parent 97c3bf6 commit 92b4096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 92b4096

Please sign in to comment.