使用 python 进行编写,因此需要 python 相关环境。
git clone https://github.com/techial1042/chaoxin-auto-flush.git
cd chaoxin-auto-flush
pip install requests
-
使用
vscode
打开main.py
文件。 -
打开超星网页,查看
URL
,找到courseId
,clazzid
和chapterId
,填在main.py
中。
if __name__ == '__main__':
chao_xin = ChaoXing(username='', # 账号名
password='', # 密码
clazz_id='', # clazzid
course_id='', # courseId
chapter_id='') # chapterId
chao_xin.play()
chao_xin.dump_session()
python main.py
-[ ] 允许自定义 sleep 时长 -[ ] 异常处理