How to switch Microsoft accounts with Python Script

Viewed 39

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?

2 Answers

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.

Related