-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZoom.py
More file actions
31 lines (24 loc) · 742 Bytes
/
Zoom.py
File metadata and controls
31 lines (24 loc) · 742 Bytes
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
import webbrowser
import time
import datetime
def openLink(url):
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"))
webbrowser.get('chrome').open(url)
def zoomJoin(h, m, url):
for i in range(0, 365):
t = datetime.datetime.today()
future = datetime.datetime(t.year, t.month, t.day, h, m)
if t.hour >= 2:
future += datetime.timedelta(days=1)
time.sleep((future-t).seconds)
openLink(url)
# Calling the Function
zoomJoin(h, m, Link)
# h = Hour in 24 format
# m = Minutes in 24 format
# Link = Paste the Zoom link in " " or ' '
"""
EXAMPLE:
zoomJoin(10, 00, "https://zoom.us/w/xxxxxxxxx")
"""