diff --git a/README.md b/README.md index 76c8cb6..7983725 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,7 @@ So far, the following projects have been integrated to this repo: | [Directory Tree Visualizer](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/Directory_Tree_Generator) | [Harpreet Singh Saluja](https://github.com/hssaluja25/) | |[Pressure_Converter](https://github.com/E-wave112/Awesome-Python-Scripts/tree/master/Pressure_Converter)|[E-Wave](https://github.com/E-wave112)| | [File Carving](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/File_Carving) | [Yeryeong Kim](https://github.com/icarusicarus/) | +|[Google Meet Joiner](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/google_meet_joiner)|[JohanSanSebastian](https://github.com/JohanSanSebastian)| ## How to use : diff --git a/google_meet_joiner/README.md b/google_meet_joiner/README.md new file mode 100644 index 0000000..7c576e2 --- /dev/null +++ b/google_meet_joiner/README.md @@ -0,0 +1,58 @@ + +# Automated Google Meet Joiner + +An automated google meet joiner the auto-joins meetings according to schedule. + + + + +## Setup + +1. To run this project, download the files and run the following command to install all the necessary files. + +```bash +pip install -r requirements.txt +``` + +2. Then open the `meeting_ids.txt` file and add your meeting ids for the day in order on each line. + +E.g. +```bash +meeting_id_1 +meeting_id_2 +meeting_id_3 +``` + +3. Then open the `meeting_times.txt` file and add your meeting time (in the 24-hour format, e.g. 16:00) for the day in order on each line. + +E.g. +```bash +16:00 +17:30 +18:50 +``` +4. The run the python file either normally or using the `pythonw` version to avoid a dialog box. + +```bash +pythonw main.py +``` + + +## Additional Setup + +5. To add more than the default 3 meetings setup by the program, simply add your meeting ids and time to the respective file and copy the following line and paste it in the program for as many ids that you add. + +```bash +schedule.every().day.at(time[x]).do(joinGoogleMeet(ids[x])) +``` +- Remember to replace the 'x' with the number on which the meeting id and time is located. + +## License + +[MIT](https://choosealicense.com/licenses/mit/) + + +## Authors + +- [@JohanSanSebastian](https://www.github.com/johansansebastian) + diff --git a/google_meet_joiner/assets/finalJoinMeet.png b/google_meet_joiner/assets/finalJoinMeet.png new file mode 100644 index 0000000..e7f1b3d Binary files /dev/null and b/google_meet_joiner/assets/finalJoinMeet.png differ diff --git a/google_meet_joiner/main.py b/google_meet_joiner/main.py new file mode 100644 index 0000000..6473eb2 --- /dev/null +++ b/google_meet_joiner/main.py @@ -0,0 +1,37 @@ +import pyautogui +import webbrowser +import schedule +import time + +def joinGoogleMeet(meeting_id): + webbrowser.open_new_tab( + f"https://meet.google.com/{meeting_id}".replace("'", "")) + time.sleep(10) + + pyautogui.click() + pyautogui.hotkey('ctrl', 'd') + time.sleep(1) + pyautogui.hotkey('ctrl', 'e') + + finaljoinBTN = pyautogui.locateCenterOnScreen( + "assets/finalJoinMeet.png") + pyautogui.moveTo(finaljoinBTN) + pyautogui.click() + +if __name__ == '__main__': + # meeting_id = input("Meeting ID: ") + # joinGoogleMeet(meeting_id) + + with open('meeting_ids.txt', 'r') as f: + ids = f.readlines() + with open('meeting_times.txt', 'r') as j: + time = j.readlines() + + # You can add more number of scheduled meetings using the line below, + # replacing 'x' with the value of the meeting id and time in their respective times + + # schedule.every().day.at(time[x]).do(joinGoogleMeet(ids[x])) + + schedule.every().day.at(time[0]).do(joinGoogleMeet(ids[0])) + schedule.every().day.at(time[1]).do(joinGoogleMeet(ids[1])) + schedule.every().day.at(time[2]).do(joinGoogleMeet(ids[2])) diff --git a/google_meet_joiner/meeting_ids.txt b/google_meet_joiner/meeting_ids.txt new file mode 100644 index 0000000..d255bbc --- /dev/null +++ b/google_meet_joiner/meeting_ids.txt @@ -0,0 +1,3 @@ +meeting_id_1 +meeting_id_2 +meeting_id_3 diff --git a/google_meet_joiner/meeting_times.txt b/google_meet_joiner/meeting_times.txt new file mode 100644 index 0000000..89c38fd --- /dev/null +++ b/google_meet_joiner/meeting_times.txt @@ -0,0 +1,3 @@ +meeting_time_1 +meeting_time_2 +meeting_time_3 diff --git a/google_meet_joiner/requirements.txt b/google_meet_joiner/requirements.txt new file mode 100644 index 0000000..5565d51 --- /dev/null +++ b/google_meet_joiner/requirements.txt @@ -0,0 +1,2 @@ +PyAutoGUI==0.9.53 +schedule==1.1.0 \ No newline at end of file