-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
79 lines (65 loc) · 2.41 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import datetime
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import schedule
import time
import join
import info
import timeTable
driver = webdriver.Chrome('C:\\web driver\\chromedriver.exe')
e = datetime.datetime.now()
day = (e.strftime("%a"))
print(day)
if day=="Mon":
monday()
elif day=="Tue":
tuesday()
elif day=="Wed":
wednesday()
elif day=="Thu":
thursday()
elif day=="Fri":
friday()
elif day=="Sat":
saturday()
else:
print("Its sunday")
def monday():
schedule.every().monday.at(firstClass).do(joinChem)
schedule.every().monday.at(secondClass).do(joinEnglish)
schedule.every().monday.at(thirdClass).do(joinPhysics)
schedule.every().monday.at(fourthClass).do(joinComputer)
schedule.every().monday.at(fifthClass).do(joinMaths)
def tuesday():
schedule.every().tuesday.at(firstClass).do(joinChem)
schedule.every().tuesday.at(secondClass).do(joinEnglish)
schedule.every().tuesday.at(thirdClass).do(joinPhysics)
schedule.every().tuesday.at(fourthClass).do(joinComputer)
schedule.every().tuesday.at(fifthClass).do(joinMaths)
def wednesday():
schedule.every().wednesday.at(firstClass).do(joinChem)
schedule.every().wednesday.at(secondClass).do(joinEnglish)
schedule.every().wednesday.at(thirdlass).do(joinPhysics)
schedule.every().wednesday.at(fourthClass).do(joinComputer)
schedule.every().wednesday.at(fifthClass).do(joinMaths)
def thursday():
schedule.every().thursday.at(firstClass).do(joinChem)
schedule.every().thursday.at(secondClass).do(joinEnglish)
schedule.every().thursday.at(thirdClass).do(joinPhysics)
schedule.every().thursday.at(fourthClass).do(joinComputer)
schedule.every().thursday.at(fifthClass).do(joinMaths)
def friday():
schedule.every().friday.at(firstClass).do(joinChem)
schedule.every().friday.at(secondClass).do(joinEnglish)
schedule.every().friday.at(thirdClass).do(joinPhysics)
schedule.every().friday.at(fourthClass).do(joinComputer)
schedule.every().friday.at(fifthClass).do(joinMaths)
def saturday():
schedule.every().saturday.at(firstClass).do(joinChem)
schedule.every().saturday.at(secondClass).do(joinEnglish)
schedule.every().saturday.at(thirdClass).do(joinPhysics)
schedule.every().saturday.at(fourthClass).do(joinComputer)
schedule.every().saturday.at(fifthClass).do(joinMaths)
while True:
schedule.run_pending()
time.sleep(60)