modified: __pycache__/get_info.cpython-310.pyc new file: __pycache__/initialization.cpython-310.pyc modified: __pycache__/kill_course.cpython-310.pyc modified: __pycache__/single_course.cpython-310.pyc modified: course_info.json modified: demo.py deleted: file.log new file: get_in.py modified: get_info.py new file: info.json modified: initialization.py modified: kill_course.py deleted: kill_quiz.py modified: main.py modified: single_course.pymain
parent
d680b1f2a1
commit
b1285b5d8e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1,20 +1,10 @@
|
||||
from DrissionPage import ChromiumPage
|
||||
from DrissionPage.common import *
|
||||
from loguru import logger
|
||||
import subprocess
|
||||
from get_info import login
|
||||
# page = ChromiumPage()
|
||||
# page.get('http://hnqmgc.17el.cn/')
|
||||
# try:
|
||||
# if page.ele('@onclick=cha()',timeout=3):
|
||||
# page.ele('@onclick=cha()').click()
|
||||
# # <img style="width: 25px;height: 25px;" src="/images/index/cha.png" alt="" srcset="">
|
||||
# elif page.ele('tag:img@@style=width: 25px;height: 25px;',timeout=3):
|
||||
# page.ele('tag:img@@style=width: 25px;height: 25px;').click()
|
||||
# except BaseException:
|
||||
# logger.error('不能进入课程页面')
|
||||
# subprocess.run(["python", __file__])
|
||||
# exit()
|
||||
# page.ele('tag:a@@text():青马课堂').hover()
|
||||
# page.ele('tag:a@@text():全部').click().for_new_tab()
|
||||
login(first=True,init=True)
|
||||
import json
|
||||
dic = json.load(open('course_info.json', 'r'))
|
||||
l1 = [ i for i in dic.keys() if dic[i]['type'] == '选修' ]
|
||||
l2 = [ i for i in dic.keys() if dic[i]['type'] == '必修' ]
|
||||
l3 = [ i for i in dic.keys() if dic[i]['type'] == '专题' ]
|
||||
l4 = [ i for i in dic.keys() if dic[i]['type'] == '培训' ]
|
||||
print(len(l1))
|
||||
print(len(l2))
|
||||
print(len(l3))
|
||||
print(len(l4))
|
@ -0,0 +1 @@
|
||||
{"username": "51140220050507901X", "password": "hnqm123456", "study_type": "\u7f51\u7edc\u6587\u660e\u5fd7\u613f\u8005"}
|
@ -1,5 +0,0 @@
|
||||
# 实现答题和评分
|
||||
'''
|
||||
检测课程状态是否存在“未评价”或者“未答题”状态
|
||||
'''
|
||||
from get_info import get_info
|
Loading…
Reference in new issue