-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (26 loc) · 1.16 KB
/
main.py
File metadata and controls
29 lines (26 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import urllib3
from __init__ import Sign_xy
import sys
if __name__ == "__main__":
urllib3.disable_warnings()
type1 = None
tmp = sys.argv
times = None
if len(tmp) == 1 or tmp[1] == "-h":
print("用法:\npython3 main.py -s\t\t签到,如果后面跟数字,那么会每隔1分钟签到一次,持续你给定的次数停止\npython3 main.py -f\t\t刷视频或者音频等作业\npython3 main.py -t\t\t刷时长\npython3 main.py -h\t\t返回此帮助")
elif sys.argv[1].strip(" ") == "-s":
type1 = "签到"
if len(tmp) == 3:
times = sys.argv[2]
elif sys.argv[1].strip(" ") == "-f":
type1 = "刷课"
elif sys.argv[1].strip(" ") == "-t":
type1 = "刷时长"
else:
print(
"用法:\npython3 main.py -s\t\t签到,如果后面跟数字,那么会每隔1分钟签到一次,持续你给定的次数停止\npython3 main.py -f\t\t刷视频或者音频等作业\npython3 main.py -t\t\t刷时长\npython3 main.py -h\t\t返回此帮助")
mybot = Sign_xy()
mybot.type = type1
mybot.times = times
# mybot.node_path = node_path
mybot.run()