|
| 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