Skip to content

Commit de50d5e

Browse files
authored
Initial commit
1 parent a83462e commit de50d5e

File tree

9 files changed

+119
-0
lines changed

9 files changed

+119
-0
lines changed
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 Sai Anish Malla
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: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import subprocess
2+
import pyautogui
3+
import time
4+
import pandas as pd
5+
from datetime import datetime
6+
7+
def sign_in(meetingid, pswd):
8+
#Opens up the zoom app
9+
#change the path specific to your computer
10+
11+
#If on windows use below line for opening zoom
12+
#subprocess.call('C:\\myprogram.exe')
13+
14+
#If on mac / Linux use below line for opening zoom
15+
subprocess.call(["/usr/bin/open", "/Applications/zoom.us.app"])
16+
17+
time.sleep(10)
18+
19+
#clicks the join button
20+
join_btn = pyautogui.locateCenterOnScreen('join_button.png')
21+
pyautogui.moveTo(join_btn)
22+
pyautogui.click()
23+
24+
# Type the meeting ID
25+
meeting_id_btn = pyautogui.locateCenterOnScreen('meeting_id_button.png')
26+
pyautogui.moveTo(meeting_id_btn)
27+
pyautogui.click()
28+
pyautogui.write(meetingid)
29+
30+
# Disables both the camera and the mic
31+
media_btn = pyautogui.locateAllOnScreen('media_btn.png')
32+
for btn in media_btn:
33+
pyautogui.moveTo(btn)
34+
pyautogui.click()
35+
time.sleep(2)
36+
37+
# Hits the join button
38+
join_btn = pyautogui.locateCenterOnScreen('join_btn.png')
39+
pyautogui.moveTo(join_btn)
40+
pyautogui.click()
41+
42+
time.sleep(5)
43+
#Types the password and hits enter
44+
meeting_pswd_btn = pyautogui.locateCenterOnScreen('meeting_pswd.png')
45+
pyautogui.moveTo(meeting_pswd_btn)
46+
pyautogui.click()
47+
pyautogui.write(pswd)
48+
pyautogui.press('enter')
49+
50+
# Reading the file
51+
df = pd.read_csv('timings.csv')
52+
53+
while True:
54+
# checking of the current time exists in our csv file
55+
now = datetime.now().strftime("%H:%M")
56+
if now in str(df['timings']):
57+
58+
row = df.loc[df['timings'] == now]
59+
m_id = str(row.iloc[0,1])
60+
m_pswd = str(row.iloc[0,2])
61+
62+
sign_in(m_id, m_pswd)
63+
time.sleep(40)
64+
print('signed in')
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
timings,meetingid,meetingpswd
2+
,,
3+
,,

0 commit comments

Comments
 (0)