Automatic login in Microsoft Authentication Portal with Selenium in python.
-
On Windows: Run
windows_install.bat
, on Linux:- pip install selenium
- pip install webdriver-manager
-
Download Chrome
-
Download login.py, remember to give credit and follow
LICENSE
Login.py
contains two functions:
-
login_cookies()
is for when your browser remembers previous logged in users, the code is written to click onother users
and continue logging in. This is used in situations like the image under. -
login()
is for when your browser does not collect info about users or the first time you're using that browser.
Please report any bugs in the GitHub repository of this project.
MIT License
Copyright (c) 2023 Lucas Nguyen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Thanks for using my software 🎈
Happy Coding!