Skip to content

Commit 277853f

Browse files
authored
Add files via upload
1 parent d6e2722 commit 277853f

File tree

9 files changed

+121
-0
lines changed

9 files changed

+121
-0
lines changed
7.7 KB
Loading
10.2 KB
Loading
7.03 KB
Loading
10.9 KB
Loading
10.3 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Neeraj Ap
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
## Zoom Auto attend Bot :
3+
4+
This Bot Requires the Timings csv file which contains meetingId,Time and password for zoom account.
5+
Then this bot logs into the account and attends the meeting
6+
7+
8+
9+
10+
## Setup instructions
11+
12+
**Requirements:** python-3.8.6
13+
14+
* Clone the GitHub repo
15+
```
16+
git clone https://github.com/Anish-Malla/Zoom-Automation-Python
17+
```
18+
* cd into the directory
19+
* Install required libraries
20+
```
21+
pip3 install pandas
22+
```
23+
* Follow the instructions specific to your OS for downloading pyautogui
24+
```
25+
https://pyautogui.readthedocs.io/en/latest/install.html
26+
```
27+
* Update the timings.csv with the time of the meeting, meeting id and password, do not add any unnecessary spaces. (Do not open the csv using excel as it changes the formatting)
28+
29+
**Note: windows users**
30+
31+
The code to open zoom is different for windows, this is shown in the main.py file make the changes accordingly.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
# Initial Imports
3+
import subprocess
4+
import pyautogui
5+
import time
6+
import pandas as pd
7+
from datetime import datetime
8+
9+
10+
# Sign in method for the bot to sign in to zoom app
11+
def sign_in_zoom(meetingid, pswd):
12+
#Opens up the zoom app
13+
#change the path specific to your computer
14+
15+
#If on windows use below line for opening zoom
16+
#subprocess.call('C:\\myprogram.exe')
17+
18+
#If on mac / Linux use below line for opening zoom
19+
subprocess.call(["/usr/bin/open", "/Applications/zoom.us.app"])
20+
21+
time.sleep(10)
22+
23+
#clicks the join button
24+
joining_btn = pyautogui.locateCenterOnScreen('join_button.png')
25+
pyautogui.moveTo(joining_btn)
26+
pyautogui.click()
27+
28+
# Type the meeting ID
29+
meet_id = pyautogui.locateCenterOnScreen('meeting_id_button.png')
30+
pyautogui.moveTo(meet_id)
31+
pyautogui.click()
32+
pyautogui.write(meetingid)
33+
34+
# Disables both the camera and the mic
35+
media_btn = pyautogui.locateAllOnScreen('media_btn.png')
36+
for btn in media_btn:
37+
pyautogui.moveTo(btn)
38+
pyautogui.click()
39+
time.sleep(2)
40+
41+
# Hits the join button
42+
joining_btn = pyautogui.locateCenterOnScreen('joining_btn.png')
43+
pyautogui.moveTo(joining_btn)
44+
pyautogui.click()
45+
46+
time.sleep(5)
47+
#Types the password and hits enter
48+
meet_password_btn = pyautogui.locateCenterOnScreen('meeting_pswd.png')
49+
pyautogui.moveTo(meet_password_btn)
50+
pyautogui.click()
51+
pyautogui.write(pswd)
52+
pyautogui.press('enter')
53+
54+
# Reading the file
55+
df = pd.read_csv('timings.csv')
56+
57+
while True:
58+
# checking of the current time exists in our csv file
59+
now = datetime.now().strftime("%H:%M")
60+
if now in str(df['timings']):
61+
62+
row = df.loc[df['timings'] == now]
63+
m_id = str(row.iloc[0,1])
64+
m_pswd = str(row.iloc[0,2])
65+
66+
sign_in_zoom(m_id, m_pswd)
67+
time.sleep(40)
68+
print('signed in')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
timings,meetingid,meetingpassword

0 commit comments

Comments
 (0)