I wrote a small script that goes through a bunch of folders and consolidates excel files.
Now I would like to use this script with files stored in our company sharepoint. Since getting support from our IT is not an option and I am looking to do this myself. I seem to get stuck at the authentication part though. Our sharepoint uses the windows credentials to connect to it, I dont have more information.
Any pointers would be helpful, I am gonna list some methods that I tried so far. Usually I get Error 401.
I tried: http://docs.python-requests.org/en/latest/user/authentication/,
I tried this code:
import requests
from requests_ntlm import HttpNtlmAuth
requests.get("http://sharepoint-site.com", auth=HttpNtlmAuth('DOMAIN\\USERNAME','PASSWORD'))
I dont know where to go from here, any pointers or ways to find out more information what type of authentication my sharepoint has would already be helpful.