Skip to content

Commit b60fda9

Browse files
committed
added function to join zoom meeting link
1 parent 171a58e commit b60fda9

File tree

7 files changed

+120
-66
lines changed

7 files changed

+120
-66
lines changed

gmeet_joiner/README.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

gmeet_joiner/main.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

gmeet_joiner/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

gmeet_zoom_joiner/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# gmeet_zoom_bot.py
2+
3+
This python script will help you to join daily repetitive classes easily.
4+
5+
- It'll join google meet or zoom meeting as per given time and link.
6+
7+
## Setup instructions
8+
9+
10+
- Firstly clone the project to the desired location, and locate it in the terminal. You would have to download the required modules, you can do this by doing:
11+
`pip install -r requirements.txt` or `pip3 install -r requirements.txt`
12+
13+
- You can now modify the script slightly according to your schedule:
14+
1) If you are using chrome as you browser then, in `gMeet()` function replace the `for i in range(4)` with `for i in range(5)`. ( If you are using safari do not change the script.)
15+
16+
2) Now you can assign your links to `url1` and `url2` variables.
17+
18+
3) You can replace the timings in main function.
19+
20+
4) Lastly you can replace 'command' with 'ctrl' if you are on windows.
21+
22+
- This script will let you run two meetings that you have on a daily bases, still you can add more if you wish.
23+
24+
- Please note: The following program supports python3
25+
26+
## Detailed explanation of script, if needed
27+
28+
Below two key modules of this script.
29+
30+
* `pyautogui` module is used for automation
31+
* `schedule` module is used to schedule meeting
32+
33+
## Output
34+
35+
Join meeting as per given time and link

gmeet_zoom_joiner/gmeet_zoom_bot.py

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
import time
2+
import webbrowser
3+
import schedule
4+
import pyautogui
5+
from PIL import ImageGrab
6+
import pyperclip
7+
8+
9+
url1 = "PASTE gmeet link/zoom link/zoom meeting id"
10+
url2 = "PASTE gmeet link/zoom link/zoom meeting id"
11+
12+
13+
def gMeet(url):
14+
webbrowser.open(url)
15+
time.sleep(3)
16+
print("Joining Class")
17+
time.sleep(2)
18+
pyautogui.hotkey('command', 'd')
19+
print("Turned off camera")
20+
pyautogui.hotkey('command', 'e')
21+
print("Turned off mic")
22+
time.sleep(3)
23+
24+
for i in range(4):
25+
pyautogui.press('tab')
26+
27+
time.sleep(3)
28+
pyautogui.press('enter')
29+
30+
31+
def zMeet(url):
32+
#copy link
33+
pyperclip.copy(url)
34+
35+
time.sleep(0.2)
36+
37+
pyautogui.press('esc', interval=0.1)
38+
39+
time.sleep(0.3)
40+
41+
#open shart
42+
pyautogui.press('win', interval=0.5)
43+
#type zoom
44+
pyautogui.write('zoom')
45+
time.sleep(2)
46+
#press enter
47+
pyautogui.press('enter', interval=0.5)
48+
49+
time.sleep(8)
50+
51+
#Click zoom button
52+
x, y = pyautogui.locateCenterOnScreen('zoom_btn.png')
53+
pyautogui.click(x, y)
54+
55+
pyautogui.press('enter', interval=0.5)
56+
57+
#paste link
58+
pyautogui.hotkey('ctrl', 'v')
59+
60+
#use tabs to move to next section
61+
pyautogui.press('tab', interval=0.5)
62+
pyautogui.press('tab', interval=0.5)
63+
pyautogui.press('tab', interval=0.5)
64+
pyautogui.press('enter', interval=0.5) #mute mic
65+
66+
pyautogui.press('tab', interval=0.5)
67+
pyautogui.press('enter', interval=0.5) #turn off camera
68+
69+
pyautogui.press('tab', interval=0.5)
70+
pyautogui.press('enter', interval=3) #join zoom link
71+
72+
73+
if __name__ == "__main__":
74+
schedule.every().day.at("16:00").do(gMeet(url1) if (
75+
url1.startswith("https://meet")) else zMeet(url1))
76+
schedule.every().day.at("06:00").do(gMeet(url2) if (
77+
url2.startswith("https://meet")) else zMeet(url2))
78+
79+
while True:
80+
schedule.run_pending() # check if we need to run anything
81+
time.sleep(10) # wait 10 second before checking again'''

gmeet_zoom_joiner/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Pillow==8.4.0
2+
PyAutoGUI==0.9.52
3+
pyperclip==1.8.2
4+
schedule==1.1.0

gmeet_zoom_joiner/zoom_btn.png

3.04 KB
Loading

0 commit comments

Comments
 (0)