Home > Blockchain >  How to switch Microsoft accounts with Python Script
How to switch Microsoft accounts with Python Script

Time:06-01

I want to switch (sign-out/sign-in) Microsoft accounts preferably on Edge. I'm looking for a way to automatically todo this action in a python script by being able to give which account to switch to.

Is there a way to perform this action in python?

CodePudding user response:

If you are trying to do so inside the web browser, you can use something like pyautogui in order to create a macro for auto sign in. If you do go that route, my suggestion would be making a macro recorder which can take your actions (clicking sign out, clicking login in, et) and play it back. Then you can use pyautogui.write() to input login credentials.

CodePudding user response:

I have found a solution after some research. Selenium in python can work to help automate login and log out for any website.

Links to Site: https://selenium-python.readthedocs.io/

  • Related