mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-23 20:11:07 +00:00
Added Google Meet Joiner (#246)
* Create CONTRIBUTING.md * Delete CONTRIBUTING.md * Create CONTRIBUTING.md * Create main.py * Add files via upload * Added requirements.txt * Add files via upload * Update README.md
This commit is contained in:
parent
be18907997
commit
bba0512e1c
|
@ -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 :
|
||||
|
||||
|
|
58
google_meet_joiner/README.md
Normal file
58
google_meet_joiner/README.md
Normal file
|
@ -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)
|
||||
|
BIN
google_meet_joiner/assets/finalJoinMeet.png
Normal file
BIN
google_meet_joiner/assets/finalJoinMeet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
37
google_meet_joiner/main.py
Normal file
37
google_meet_joiner/main.py
Normal file
|
@ -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]))
|
3
google_meet_joiner/meeting_ids.txt
Normal file
3
google_meet_joiner/meeting_ids.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
meeting_id_1
|
||||
meeting_id_2
|
||||
meeting_id_3
|
3
google_meet_joiner/meeting_times.txt
Normal file
3
google_meet_joiner/meeting_times.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
meeting_time_1
|
||||
meeting_time_2
|
||||
meeting_time_3
|
2
google_meet_joiner/requirements.txt
Normal file
2
google_meet_joiner/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
PyAutoGUI==0.9.53
|
||||
schedule==1.1.0
|
Loading…
Reference in New Issue
Block a user