Python based Bot with Selenium
This bot attends the online classes (or meetings) held on Microsoft teams, according to the given timetable.Informs if bot is successfully joined the meeting through discord.
Works perfectly fine in Windows 10...other OS no idea...
Python 3 should be installed to the run the bot..
https://www.python.org/downloads/
- Chrome----> https://chromedriver.chromium.org/ ..
- Edge------> https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ ..
- Firefox----> https://github.com/mozilla/geckodriver/releases ..
- Chrome----> chrome://settings/help ..
- Edge------> edge://help ..
- Firefox----> Click the menu button ≡ Menu , click Help and select About Firefox
- in
line 196
mah = webdriver.Chrome("PASTE YOUR WEBDRIVER PATH HERE
",options=opt,service_log_path='NUL') #Example ("E:\WebDrivers\chromedriver.exe",options=opt,service_log_path='NUL')
- for Edge---- >
line 196
mah = webdriver.Edge("PASTE YOUR WEBDRIVER PATH HERE
",options=opt,service_log_path='NUL') #Example ("E:\WebDrivers\chromedriver.exe",options=opt,service_log_path='NUL') - for Firefox--- >
line 196
mah = webdriver.Firefox("PASTE YOUR WEBDRIVER PATH HERE
",options=opt,service_log_path='NUL') #Example ("E:\WebDrivers\chromedriver.exe",options=opt,service_log_path='NUL')
There are few things you got configure before running this bot.
- Open Microsoft teams on your browser https://teams.microsoft.com/, login to your account, change the dashboard view to list view (from grid view), so that your classes are displayed in a list view.
- Open msbot.py, and put your microsoft teams credentials in the user & pwd field.
- Example -
user = ('myemail@email.com')
pwd = ('mypassword')
- Open discord_webhook.py and put your discord webhook URL in the webhook_url variable.
- Example -
webhook_url = "https://discord.com/api/webhooks/...."
- Edit database if done some mistake during entering the information in bot
- Download Sqlite browser and edit through this...
- Download link:https://sqlitebrowser.org/dl/
- Clone the repository
git clone https://github.com/mah-hacker/Teams-Bot
- Install requirements.txt
pip install -r requirements.txt
- Run the bot
python msbot.py