diff --git a/gmeet_joiner/README.md b/gmeet_joiner/README.md deleted file mode 100644 index 4f83b30cd..000000000 --- a/gmeet_joiner/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# Google Meet Automation - -This python script will help you to join daily repetitve classses easily. - - -### Getting Started - -- 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: - `pip install -r requirements.txt` or `pip3 install -r requirements.txt` - -- You can now modify the script slightly according to your schedule: - 1) If you are using chrome as you browser please replace the `for i in range(4)` at line 21 to: - `for i in range(5)` - - If you are using safari do not change the script. - - 2) You can now replace the links with your meet links at line 6 and 7. - - 3) You can replace the timings at line 47 and 48 (in military time): - - 4) Lastly you can replace 'command' with 'ctrl' if you are on windows. - -- This script will let you run two meetings that you have on a daily bases. - - -- Please note: The following program supports python3 - diff --git a/gmeet_joiner/main.py b/gmeet_joiner/main.py deleted file mode 100644 index fced7f22b..000000000 --- a/gmeet_joiner/main.py +++ /dev/null @@ -1,35 +0,0 @@ -import time -import webbrowser -import schedule -import pyautogui - - -url1 = "https://meet.google.com" -url2 = "https://www.google.com" - - -def attend_class(url): - webbrowser.open(url1) - time.sleep(3) - print("Joining Class") - time.sleep(2) - pyautogui.hotkey('command', 'd') - print("Turned off camera") - pyautogui.hotkey('command', 'e') - print("Turned off mic") - time.sleep(3) - - for i in range(4): - pyautogui.press('tab') - - time.sleep(3) - pyautogui.press('enter') - - -if __name__ == "__main__": - schedule.every().day.at("16:00").do(attend_class(url1)) - schedule.every().day.at("06:00").do(attend_class(url2)) - - while True: - schedule.run_pending() # check if we need to run anything - time.sleep(10) # wait 10 second before checking again diff --git a/gmeet_joiner/requirements.txt b/gmeet_joiner/requirements.txt deleted file mode 100644 index d8a28a739..000000000 --- a/gmeet_joiner/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -PyAutoGUI==0.9.52 -schedule==0.6.0 - - diff --git a/gmeet_zoom_joiner/README.md b/gmeet_zoom_joiner/README.md new file mode 100644 index 000000000..98593c2a0 --- /dev/null +++ b/gmeet_zoom_joiner/README.md @@ -0,0 +1,35 @@ +# gmeet_zoom_bot.py + +This python script will help you to join daily repetitive classes easily. + +- It'll join google meet or zoom meeting as per given time and link. + +## Setup instructions + + +- 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: + `pip install -r requirements.txt` or `pip3 install -r requirements.txt` + +- You can now modify the script slightly according to your schedule: + 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.) + + 2) Now you can assign your links to `url1` and `url2` variables. + + 3) You can replace the timings in main function. + + 4) Lastly you can replace 'command' with 'ctrl' if you are on windows. + +- This script will let you run two meetings that you have on a daily bases, still you can add more if you wish. + +- Please note: The following program supports python3 + +## Detailed explanation of script, if needed + +Below two key modules of this script. + +* `pyautogui` module is used for automation +* `schedule` module is used to schedule meeting + +## Output + +Join meeting as per given time and link diff --git a/gmeet_zoom_joiner/gmeet_zoom_bot.py b/gmeet_zoom_joiner/gmeet_zoom_bot.py new file mode 100644 index 000000000..f81e7036c --- /dev/null +++ b/gmeet_zoom_joiner/gmeet_zoom_bot.py @@ -0,0 +1,80 @@ +import time +import webbrowser +import schedule +import pyautogui +import pyperclip + + +url1 = "PASTE gmeet link/zoom link/zoom meeting id" +url2 = "PASTE gmeet link/zoom link/zoom meeting id" + + +def gMeet(url): + webbrowser.open(url) + time.sleep(3) + print("Joining Class") + time.sleep(2) + pyautogui.hotkey('command', 'd') + print("Turned off camera") + pyautogui.hotkey('command', 'e') + print("Turned off mic") + time.sleep(3) + + for i in range(4): + pyautogui.press('tab') + + time.sleep(3) + pyautogui.press('enter') + + +def zMeet(url): + # copy link + pyperclip.copy(url) + + time.sleep(0.2) + + pyautogui.press('esc', interval=0.1) + + time.sleep(0.3) + + # open shart + pyautogui.press('win', interval=0.5) + # type zoom + pyautogui.write('zoom') + time.sleep(2) + # press enter + pyautogui.press('enter', interval=0.5) + + time.sleep(8) + + # Click zoom button + x, y = pyautogui.locateCenterOnScreen('zoom_btn.png') + pyautogui.click(x, y) + + pyautogui.press('enter', interval=0.5) + + # paste link + pyautogui.hotkey('ctrl', 'v') + + # use tabs to move to next section + pyautogui.press('tab', interval=0.5) + pyautogui.press('tab', interval=0.5) + pyautogui.press('tab', interval=0.5) + pyautogui.press('enter', interval=0.5) # mute mic + + pyautogui.press('tab', interval=0.5) + pyautogui.press('enter', interval=0.5) # turn off camera + + pyautogui.press('tab', interval=0.5) + pyautogui.press('enter', interval=3) # join zoom link + + +if __name__ == "__main__": + schedule.every().day.at("16:00").do(gMeet(url1) if ( + url1.startswith("https://meet")) else zMeet(url1)) + schedule.every().day.at("06:00").do(gMeet(url2) if ( + url2.startswith("https://meet")) else zMeet(url2)) + + while True: + schedule.run_pending() # check if we need to run anything + time.sleep(10) # wait 10 second before checking again''' diff --git a/gmeet_zoom_joiner/requirements.txt b/gmeet_zoom_joiner/requirements.txt new file mode 100644 index 000000000..2fc1593a9 --- /dev/null +++ b/gmeet_zoom_joiner/requirements.txt @@ -0,0 +1,3 @@ +PyAutoGUI==0.9.52 +pyperclip==1.8.2 +schedule==1.1.0 \ No newline at end of file diff --git a/gmeet_zoom_joiner/zoom_btn.png b/gmeet_zoom_joiner/zoom_btn.png new file mode 100644 index 000000000..af7bab499 Binary files /dev/null and b/gmeet_zoom_joiner/zoom_btn.png differ