Надо авторизоваться через скрипт на сайте используя chromedriver
path = './chromedriver.exe'
browser = Chrome(path, options=opts)
browser.get("https://login.dnevnik.ru/login")
вывод:
Traceback (most recent call last):
File "C:\Users\Fantom\Desktop\DnevnikRuBot-master\DnevnikRuBot.py", line 225, in <module>
browser = Chrome(path, options=opts)
File "C:\Users\Fantom\AppData\Roaming\Python\Python39\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Users\Fantom\AppData\Roaming\Python\Python39\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home