Skip to content

Commit 394dc9f

Browse files
Add files via upload
1 parent 441a0b6 commit 394dc9f

File tree

3 files changed

+170
-0
lines changed

3 files changed

+170
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
```
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')
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+
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"))
25+
print(justtime)
26+
s=now.strftime("%S")
27+
se=int(s)
28+
29+
while(940<=justtime):
30+
#MATHS SHEDULE
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)
38+
pyautogui.click(659, 960)
39+
time.sleep(5)
40+
pyautogui.hotkey('ctrl','d')
41+
time.sleep(5)
42+
pyautogui.click(1425, 720)
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+

0 commit comments

Comments
 (0)