-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
79 lines (60 loc) · 1.87 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 meeting_platforms as mp
import pause
import pandas as pd
from datetime import datetime
from playsound import playsound
import project_intro
import cred
project_intro.give_intro()
email, password = cred.re_cred()
# add email & password
mp.take_credentials(email, password)
# the following chromedriver is for widows 10 64 bit (chrome version 89)
mp.change_driver_path('files/chromedriver.exe')
# to get user profile path go to chrome://version
mp.change_profile_path("path")
def list_of_date_time(raw_date, raw_time):
raw_date = raw_date.split("-")
raw_date = list(map(int, raw_date))
raw_date.reverse()
raw_time = raw_time.split(":")
raw_time = list(map(int ,raw_time))
final_list = raw_date + raw_time
return final_list
print(" Getting your Schedule.....")
df = pd.read_csv("timings.csv")
i = 0
while i < df.shape[0]:
info = df.iloc[i]
date_is = str(info[0])
time_is = str(info[1])
link_is = str(info[2])
id_is = str(info[3])
psw_is = str(info[4])
if pd.isnull(info[0]):
i+=1
continue
event_schedule = list_of_date_time(date_is, time_is)
# print(*event_schedule)
if datetime(*event_schedule)<datetime.now():
i+=1
continue
print("Upcoming Meeting Information : ")
print(info)
pause.until(datetime(*event_schedule))
playsound('files/audio/notification.mp3')
print("Starting the above meeting")
if 'meet' in link_is:
mp.google_meet(link_is)
elif 'zoom' in link_is:
mp.zoom(link_is)
elif pd.isnull(info[2]):
if id_is.isdigit():
mp.zoom_by_id(id_is, psw_is)
elif id_is.isalpha():
mp.google_meet_by_id(id_is)
df = pd.read_csv("timings.csv")
i+=1
print(" All the meetings are Over Enjoy Your Day !")
input(" Press Enter to exit :")
playsound('files/audio/shutdown_1.mp3')