на данный момент проверена работа только с темной темой teams, браузерами: Google Chrome, Yandex Browser, MS Edge
Лучший вариант - заглянуть в блок Release справа, но если же ты рискованный - можешь качать проект прямо с main ветки :) P.s я бы все таки рекомендовал качать релиз
- Происходит парсинг расписания с pastebin
- Устанавливается путь до исполняемого файла браузера (на данный момент доступен только Google Chrome)
- При соответсвии текущей даты\времени с датой\временем начала пары открывается команда в браузере
- С помощью компьютерного зрения выполняется поиск необходимых кнопок для "входа"
- Выполняется последовательный скрипт по нажатию необходимых кнопок
- В тайминг конца пары вкладка с лекцией закрывается
- Бот возвращается к пункту 3.
Есть два варианта:
-
Установить необходимые библиотеки и запустить файл main.py
pip install pyautogui
pip install requests
pip install opencv-python
pip install pyYAML
pip install pygetwindow
-
Запустить TeamsAfkBot.exe в корневой папке, но в таком случае инициализация до запуска самого бота займет ~15 секунд (в зависимости hardware)
Если что то не работает: проверьте точно ли папка с ботом находится на одном диске с браузерами (windows - диск C) попробуйте запустить settings.exe, это перезапишет пути к браузерам
The best option is to look into the Release block on the right, but if you are risky, you can download the project directly from the main branch :) P.s I would still recommend downloading the release
- The schedule is parsed from pastebin
- The path to the browser executable is set (only Google Chrome is available at the moment)
- If the current date/time matches the date/time of the beginning of the pair, a command is opened in the browser
- With the help of computer vision, the necessary buttons are searched for "input"
- A sequential script is executed by pressing the necessary buttons
- At the timing of the end of the pair, the tab with the lecture closes
- The bot returns to point 3.
There are two options:
-
Install the required libraries and run the main.py file
pip install pyautogui
pip install requests
pip install opencv-python
pip install pyYAML
pip install pygetwindow
-
Run TeamsAfkBot.exe in the root folder, but in this case, initialization before starting the bot itself will take ~ 15 seconds (depending on hardware)