How to Auto Join Zoom Meetings Using Python
Let ’ s now create up the auto-join bot to connect to Zoom meetings. This bot will connect to a specific yoke based on the stage set time .
1. Install Selenium and Pyautogui
For this project, we need the selenium and pyautogui modules that can be downloaded using the follow command from the pip package director.
pip install selenium pip install pyautogui
other than these modules we besides need to download the chrome or firefox webdriver. It is essential that the version of both webdriver and vane browser are the same, which you may find to download at their official browser sites or with a simpleton google search. Recommended understand : Installing Web Driver in Selenium Python
from selenium import webdriver import pyautogui as py import time
After importing the necessity modules we now need to initialize the webdriver. In the trace code, we will pass the way of the webdriver .
driver = webdriver.Chrome(Path of downloaded chrome webdriver)
2. Opening Zoom And Getting The Required Information
now that our apparatus is complete we can start coding our bot to attend meetings mechanically. In order to attend any meet on zoom, we need a meeting id and passcode. So we ’ ll save both in a variable. This associate will open the zoom join confluence web page .
driver.get('https://zoom.us/join') # --> storing meeting id and passcode, you may also take this as an input in your code from the user meet_code = "275 816 9386" passcode = "9pX9pT"
3. Finding The Web Elements
When we try to join a confluence, from the Zoom customer we are presented with the authentication page, which we besides get by fetching the URL in the former step, web page asking for a meet code. Authentication In Zoom We ’ ll inspect the id box and join button in order to find their xpath so we can locate the elements and automate these actions using selenium. In the code below we ’ ve found the idaho box first and gave it our meet code using the send keys method.
After the meet code is filled we will click on the join button to go to the future measure. Our bot will imitate the same human behavior for inputting values and joining the meet .
# finding id text box and sending it our meeting code. element_box = driver.find_element_by_xpath("//input[@id='join-confno']") element_box.send_keys(meet_code) #waiting for 2 seconds to send the code time.sleep(2) #finding the join button and clicking on it Btn = driver.find_element_by_xpath("//a[@id='btnSubmit']") Btn.click()
4. Use Pyautogui To Type The Passcode
After clicking the join release, the soar customer will open which will ask you to enter the passcode for the meeting. so to find the text box to enter the passcode and submit button we ’ ll use pyautogui. We ’ ll take the screenshot of the input field and submit button and save it in the like directory as our python file .Entering Meeting Password Automatically Using pyautogui ’ sulfur locateCenterOnScreen(‘image_path’) we ’ ll find the center align of these images on the screen door and we ’ ll travel by these coordinates to the moveTo() method acting which will move our cursor to the text field and release.
enter_passcode = py.locateCenterOnScreen('passcode.png') py.moveTo(enter_passcode) py.click() py.write(passcode)
In the above code, we ’ ve found the textbook box and filled it with the write method acting .
btn = py.locateCenterOnScreen("zoom\join.png") py.moveTo(btn) py.click()
And barely like that, we ’ ll be able to attend any suffer automatically on a childlike run of a python handwriting. Also read: Auto-Type Text Using Python
Complete Python Script to Auto Join Zoom Meetings
Final code for the bot :
from selenium import webdriver import pyautogui as py import time passcode = "9pX9PT" meet_code = "272 916 9386" def join(meet, password): driver = webdriver.Chrome('C://software/chromedriver.exe') driver.get('https://zoom.us/join') time.slee(5) #to let the webpage open completely driver.find_element_by_xpath("//input[@id='join-confno']").send_keys(meet_code) time.sleep(2) driver.find_element_by_xpath("//a[@id='btnSubmit']").click() time.sleep(5) # enter passcode enter_passcode = py.locateCenterOnScreen('passc.png') py.moveTo(enter_passcode) py.click() py.write(passcode) # join the meeting time.sleep(5) btn = py.locateCenterOnScreen("join.png") py.moveTo(btn) py.click() join(meet_code,passcode)
promote in this script can be an approach to join and leave the converge at a particular time. besides, you may build a bot for any early merging customer like Google Meet, Microsoft Teams, etc. using the above-discussed approach path.
Read more: Integration Rules
Conclusion
That ’ s it for the bot. Hope you learned well how to create a bot that joins Zoom meetings mechanically and are quick to build a bot for your meetings and automate the tax.