Skip to content

Commit 004cbe6

Browse files
Merge pull request prathimacode-hub#995 from NEERAJAP2001/Zoom_bot_new
Added Zoom bot - Auto Attend
2 parents d878f67 + 52ecb4e commit 004cbe6

File tree

9 files changed

+130
-0
lines changed

9 files changed

+130
-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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
## What are Bots?
3+
Bots are software programs that combine requests, which are typically provided as text, with contextual data, such as geolocation and payment information, to appropriately handle the request and respond. Bots are often also called "chatbots", "assistants" or "agents."
4+
5+
6+
## Zoom Auto attend Bot:
7+
8+
This Bot Requires the Timings csv file which contains meetingId,Time and password for zoom account.
9+
Then this bot logs into the account and attends the meeting
10+
11+
## Steps Included :
12+
* Opens up the zoom app
13+
* clicks the join button
14+
* Type the meeting ID
15+
* Disables both the camera and the mic
16+
* Hits the join button
17+
* Types the password and hits enter
18+
19+
## Setup instructions
20+
21+
**Requirements:** python-3.8.6
22+
23+
* Clone the GitHub repo
24+
```
25+
git clone https://github.com/Anish-Malla/Zoom-Automation-Python
26+
```
27+
* cd into the directory
28+
* Install required libraries
29+
```
30+
pip3 install pandas
31+
```
32+
* Follow the instructions specific to your OS for downloading pyautogui
33+
```
34+
https://pyautogui.readthedocs.io/en/latest/install.html
35+
```
36+
* 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)
37+
38+
**Note: windows users**
39+
40+
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)