I am trying to download a file from sharepoint using python(for automation purposes). Sharepoint has two factor authetication(VIP access). I tried using Office365-REST-Python-Client library to log in with username and password, but unable to log in. The page is redirected to VIP access page which asks for OTP when accessed manually through web page. How to read the second step of the access(VIP access) in python and input the code that is sent to my local.
I tried Office365-REST-Python-Client library to log in with username and password, but didn't get very far from there.