forked from jinde98/dailycheckin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.py
63 lines (49 loc) · 1.8 KB
/
main.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from message_send import MessageSend
from config import message_tokens, youdao_cookie,ali_refresh_token,ty_pwd,ty_user,youdao_user, redis_info
import aliyunpan, tianyiyunpan,YouDao_user_login,tianyi_task
import notify
import time
def yd_run():
content =''
title = ""
if youdao_user != None:
yd_user = []
yd_user = youdao_user.split("&")
for user in yd_user:
youdao_sign=YouDao_user_login.Youdao(user, redis_info)
content= youdao_sign.run() + '\n\n'
title = "【有道】"
# 另一种通知方式
notify.send(title+'每日签到',content)
# if ali_refresh_token != None :
# Aliyun=aliyunpan.Ali(ali_refresh_token, redis_info)
# content += Aliyun.run() + '\n\n'
# title += "【阿里】"
# if ty_user != None and ty_pwd != None:
# content += tianyiyunpan.main(ty_user, ty_pwd)
# title += "【天翼】"
# send = MessageSend()
# send.send_all(message_tokens,title+'每日签到',content)
# def ty_run():
# content =''
# title = ""
# user_ty = []
# pwd_ty = []
# user_ty.extend(ty_user.split(","))
# pwd_ty.extend(ty_pwd.split(","))
# print(user_ty)
# for i in range(len(user_ty)):
# print(i)
# if user_ty[i] != None and pwd_ty[i] != None:
# print(user_ty[i])
# try:
# content = tianyiyunpan.main(user_ty[i], pwd_ty[i])
# except:
# pass
# title = "【天翼】"+user_ty[i]
# notify.send(title+' 每日签到',content)
# time.sleep(20)
# i+=1
if __name__ == "__main__":
tianyi_task.main()
yd_run()