Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6f3d2c7

Browse files
Merge pull request #1069 from Knighthawk-Leo/main
Google Meet Automation
2 parents dca1bb0 + 4ecafed commit 6f3d2c7

File tree

7 files changed

+185
-0
lines changed

7 files changed

+185
-0
lines changed
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
# An Automation script to automatically join a scheduled google-meet meeting at a specific time without manual labour.
2+
3+
# importing the required python packages
4+
import pyautogui
5+
import webbrowser
6+
import time
7+
from datetime import datetime
8+
from selenium import webdriver
9+
from selenium.webdriver.common.keys import Keys
10+
from selenium.webdriver.chrome.options import Options
11+
12+
print("THIS IS A PROGRAM FOR GMEET AUTOMATION\nThis PROGRAM WILL HELP YOU TO JOIN YOUR CLASSES ON TIME\nTHANKS TO SANSKAR DWIVEDI FOR MAKING THIS\n\n")
13+
#checking for todays time and day
14+
now = datetime.now()
15+
current_day = now.strftime("%H:%M/%A")
16+
print(current_day)
17+
18+
19+
20+
21+
while True:
22+
now = datetime.now() # check the current system time
23+
day=now.strftime("%A")
24+
justtime=int(now.strftime("%H%M"))#taking time and day
25+
print(justtime)
26+
s=now.strftime("%S")
27+
se=int(s)
28+
29+
while(940<=justtime): #checking for the condition of time
30+
#MATHS SHEDULE for different classes according to day
31+
if(day=="Monday" and 955<=justtime<=1050 or day=="Wednesday" and 955<=justtime<=1050 or day=="Thursday" and 1055<=justtime<=1250 or day=="Friday" and 1255<=justtime<=1250):
32+
pyautogui.prompt(text="YOU ARE JOINING TO MATHS CLASS HOPE YOU COMPLETED THE PREVIOUS STUFFS")
33+
time.sleep(2)
34+
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open_new("https://meet.google.com/weg-kaez-ytb")
35+
36+
37+
time.sleep(5)#sleep for 5s
38+
pyautogui.click(659, 960) #click for join
39+
time.sleep(5)
40+
pyautogui.hotkey('ctrl','d') #to turnoff camera
41+
time.sleep(5)
42+
pyautogui.click(1425, 720) #turnoff mike
43+
time.sleep(2500)
44+
break
45+
#BEE SHEDULE
46+
if(day=="Monday" and 1055<=justtime<=1150 or day=="Thursday" and 1155<=justtime<=1250 or day=="Friday" and 1055<=justtime<=1150):
47+
print("YOU ARE JOINING TO BEE CLASS HOPE YOU COMPLETED THE PREVIOUS STUFF")
48+
49+
time.sleep(2)
50+
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open_new("https://meet.google.com/pex-ktrx-qrk")
51+
time.sleep(5)
52+
pyautogui.click(659, 960)
53+
time.sleep(5)
54+
pyautogui.hotkey('ctrl','d')
55+
time.sleep(5)
56+
pyautogui.click(1425, 720)
57+
time.sleep(2500)
58+
59+
60+
#CHEMISTRY SHEDULE
61+
if(day=="Monday" and 1155<=justtime<=1250 or day=="Tuesday" and 955<=justtime<=1050 or day=="Wednesday" and 1155<=justtime<=1250):
62+
63+
print("YOU ARE JOINING TO CHEMISTRY CLASS HOPE YOU COMPLETED THE PREVIOUS STUFF")
64+
time.sleep(2)
65+
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open_new("https://meet.google.com/sbp-urci-ibv")
66+
time.sleep(5)
67+
pyautogui.click(659, 960)
68+
time.sleep(5)
69+
pyautogui.hotkey('ctrl','d')
70+
time.sleep(5)
71+
pyautogui.click(1425, 720)
72+
time.sleep(2500)
73+
break
74+
#ECOLOGY SHEDULE
75+
if(day=="Tuesday" and 1155<=justtime<=1250 or day=="Wednesday" and 1055<=justtime<=1150 or day=="Thursday" and 940<=justtime<=1050 ):
76+
77+
print("YOU ARE JOINING TO ECOLOGY CLASS HOPE YOU COMPLETED THE PREVIOUS STUFFS")
78+
79+
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open_new("https://meet.google.com/vhg-ptym-znf")
80+
time.sleep(5)
81+
pyautogui.click(659, 960)
82+
time.sleep(5)
83+
pyautogui.hotkey('ctrl','d')
84+
time.sleep(5)
85+
pyautogui.click(1425, 720)
86+
time.sleep(2500)
87+
break
88+
89+
#IWT SHEDULE
90+
if(day=="Tuesday" and 1050<=justtime<=1150 or day=="Friday" and 955<=justtime<=1050 ):
91+
print("YOU ARE JOINING TO MATHS CLASS HOPE YOU COMPLETED THE PREVIOUS STUFFS")
92+
time.sleep(2)
93+
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open_new("https://meet.google.com/aed-dnej-jta")
94+
time.sleep(5)
95+
pyautogui.click(659, 960)
96+
time.sleep(5)
97+
pyautogui.hotkey('ctrl','d')
98+
time.sleep(5)
99+
pyautogui.click(1425, 720)
100+
time.sleep(2500)
101+
break
102+
103+
if(justtime>1500):
104+
105+
pyautogui.alert(text='classes are over you are joining to test class ',button='ok')
106+
time.sleep(2)
107+
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open_new("https://meet.google.com/dqy-tgte-vco")
108+
time.sleep(5)
109+
pyautogui.click(659, 960)
110+
time.sleep(5)
111+
pyautogui.hotkey('ctrl','d')
112+
time.sleep(5)
113+
pyautogui.click(1425, 720)
114+
time.sleep(2500)
115+
break
116+
117+
quit()
118+
break
119+
120+
121+
time.sleep(60-se)
122+
123+
124+
125+
126+
127+
128+
129+
130+
131+
132+
133+
134+
135+
136+
137+
48.3 KB
Loading[フレーム]
42.9 KB
Loading[フレーム]
36.8 KB
Loading[フレーム]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# GOOGLE-MEET-ASSISTANT-FOR-ONLINE-CLASSES
2+
This a simple python program to attend your online gmeet classes accordinf to your time table.
3+
4+
you just have to open the file untill your class get over.
5+
6+
# What are the main features-
7+
* Attend you class on time
8+
* No need to search links every time
9+
* It will auto turnoff the camera
10+
* It will auto Turnoff your mic
11+
* It will auto give the request to join.
12+
* It can shift you to the next class without disturbing the previous one.
13+
14+
15+
16+
## you need to install following libraries to run this python program in cmd
17+
```
18+
pip install pyautogui
19+
pip install webbrowser
20+
pip install time
21+
pip install datetime
22+
23+
```
24+
### Changes Need In the code
25+
* Change the Google meet links (starting from line 65)
26+
* Change the time of classes according to your need
27+
28+
29+
## Step01
30+
<img src="Images/gm01.png">
31+
32+
## Step02
33+
<img src="Images/gw02.png">
34+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import pyautogui, sys
2+
print('Press Ctrl-C to quit.')
3+
try:
4+
while True:
5+
x, y = pyautogui.position()
6+
positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4)
7+
print(positionStr, end='')
8+
print('\b' * len(positionStr), end='', flush=True)
9+
except KeyboardInterrupt:
10+
print('\n')
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pip install pyautogui
2+
pip install webbrowser
3+
pip install time
4+
pip install datetime

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /