Installation
Clone Repository
git clone https://github.com/amdoi7/ZJOOCHelper.git
Install Dependencies
pip install -r requirements.txt
Run
Create a new py file
from zjooc import ZJOOC
import os
HELP_TEXT = """
exit:退出程序
clear:清屏
msg:
0-测验 1-考试 2-作业
3-info 4-course 5-score
6-video 7-ans
ex:
msg 0
msg 6 course_id
msg 7 paperId course_id
do:
0-测验、考试、作业 1-video 2-all[not suggest!!!]
ex:
do 0 paper_id course_id class_id
do 1 course_id
do 2 #HACK 谨慎使用!!!
"""
if __name__ == "__main__":
# 输入在浙学的账号密码
user = ZJOOC(username="", pwd="")
print(HELP_TEXT)
while True:
commands = input("Enter your commands.\n")
if commands == "exit":
break
elif commands == "help":
print(HELP_TEXT)
elif commands == "clear":
if os.name == "posix": # Linux 和 MacOS 平台
os.system("clear")
else: # Windows 平台
os.system("cls")
print(HELP_TEXT)
else:
user.paser(commands)
Run the newly created script
Usage Instructions
msgcommand:msg 0: View quiz related messagesmsg 1: View exam related messagesmsg 2: View assignment related messagesmsg 3: View info related messagesmsg 4: View course related messagesmsg 5: View score related messagesmsg 6 course_id: View video related messages for the specified course IDmsg 7 paperId course_id: View answer related messages for the specified paper ID and course ID
docommand:do 0 paper_id course_id class_id: Complete quiz, exam, or assignment for the specified paper ID, course ID, and class IDdo 1 course_id: Watch videos for the specified course IDdo 2: Execute all operations (please use with caution)
Other commands:
exit: Exit scripthelp: Print help text, showing the list of available commands and examplesclear: Clear screen
Notes
For educational purposes only, do not use for illegal purposes
Author Repository: https://github.com/amdoi7/ZJOOCHelper