modified: demo.py renamed: main.py -> get_info.py new file: kill_course.pymain
parent
8eb8db6137
commit
c2e195f26d
@ -0,0 +1,157 @@
|
||||
{
|
||||
"7367": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7366": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7033": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7517": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7032": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7516": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7031": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7515": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"6349": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7436": {
|
||||
"rate": 100,
|
||||
"type": "\u5fc5\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"6937": {
|
||||
"rate": 0,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u672a\u5b66\u5b8c"
|
||||
},
|
||||
"6938": {
|
||||
"rate": 0,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u672a\u5b66\u5b8c"
|
||||
},
|
||||
"6991": {
|
||||
"rate": 0,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u672a\u5b66\u5b8c"
|
||||
},
|
||||
"6992": {
|
||||
"rate": 62,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u672a\u5b66\u5b8c"
|
||||
},
|
||||
"6993": {
|
||||
"rate": 100,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u672a\u8bc4\u5206"
|
||||
},
|
||||
"6995": {
|
||||
"rate": 100,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7006": {
|
||||
"rate": 100,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7007": {
|
||||
"rate": 100,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7010": {
|
||||
"rate": 100,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7011": {
|
||||
"rate": 100,
|
||||
"type": "\u57f9\u8bad",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7554": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7553": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7552": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7551": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7550": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7549": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7548": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7547": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7546": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7545": {
|
||||
"rate": 100,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u5df2\u5b66\u5b8c"
|
||||
},
|
||||
"7564": {
|
||||
"rate": 0,
|
||||
"type": "\u9009\u4fee",
|
||||
"status": "\u672a\u5b66\u5b8c"
|
||||
}
|
||||
}
|
@ -1,6 +1,4 @@
|
||||
from DrissionPage import ChromiumPage
|
||||
import json
|
||||
|
||||
# 创建页面对象,并启动或接管浏览器
|
||||
page = ChromiumPage()
|
||||
# 跳转到登录页面
|
||||
page.get('https://g1879.gitee.io/drissionpagedocs/get_start/examples/control_browser')
|
||||
info = json.load(open('course_info.json', 'r'))
|
||||
print(info)
|
@ -0,0 +1,14 @@
|
||||
from DrissionPage import ChromiumPage
|
||||
from DrissionPage.common import *
|
||||
from collections import *
|
||||
import time
|
||||
import json
|
||||
# 统计课程完成情况
|
||||
cnt = defaultdict(list)
|
||||
# 读取课程信息
|
||||
info = json.load(open('course_info.json', 'r'))
|
||||
for k, v in info.items():
|
||||
if v['rate'] < 100:
|
||||
cnt[v['type']].append(k)
|
||||
print(cnt)
|
||||
# 按必修-选秀-专题-培训执行刷课
|
Loading…
Reference in new issue