Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Commit 61f524c

Browse files
authored
Update Automeet.py
1 parent fd4b701 commit 61f524c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Source/Automeet.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ def login(username, password): # Logs in the user
101101

102102

103103
def time_table(): # Checking for today's classes
104-
meetings_today = driver.find_elements_by_class_name("wKIIs")
104+
meetings_today = driver.find_elements_by_class_name("wKIIs") # VdLOD yUoCvf
105105
timetable_list = []
106106
for meetings in meetings_today:
107107
class_data = meetings.text.split('\n')
108+
class_time = ""
108109
driver.implicitly_wait(5)
109110
try:
110111
try:
@@ -116,6 +117,10 @@ def time_table(): # Checking for today's classes
116117
class_time = dt.datetime.strptime(class_data[0], "%I:%M %p")
117118
except ValueError:
118119
class_time = dt.datetime.strptime(class_data[0], "%H:%M")
120+
except Exception as e:
121+
print(e, end="\n")
122+
print("\n Please re-run the Automeet.")
123+
exit_now()
119124

120125
driver.implicitly_wait(5)
121126
timetable_list.append([class_time,
@@ -218,6 +223,7 @@ def live_count(): # Print Live count of participants
218223
print("Please check your Internet connection and Re-Start the Automeet.")
219224
exit_now()
220225
except NoSuchElementException:
226+
live_count()
221227
pass
222228

223229

@@ -462,6 +468,11 @@ def exit_now(): # Exits the script
462468
exit_now()
463469
print('Success.', end='\n')
464470

471+
try:
472+
recordingJoinNow = driver.find_element_by_xpath("//div[@role='button']//span[contains(text(), 'Join now')]")
473+
except NoSuchElementException:
474+
pass
475+
465476
# Clicks END button if conditions are satisfied.
466477
# Ends session when either of the condition is satisfied
467478
while True:

0 commit comments

Comments
 (0)