-
Notifications
You must be signed in to change notification settings - Fork 26
Description
I'm trying to dl an excel file from my organization's sharepoint
I used the files from here and I'm getting this error:
Traceback (most recent call last):
File "C:\Users\tdiacon\Pyproj\PySharePoint\project.py", line 10, in
file = SharePoint().download_file(file_name, folder_name)
File "C:\Users\tdiacon\Pyproj\PySharePoint\sharepoint.py", line 37, in download_file
self._folder = self.connect_folder(folder_name)
File "C:\Users\tdiacon\Pyproj\PySharePoint\sharepoint.py", line 29, in connect_folder
self.auth_site = self.auth()
File "C:\Users\tdiacon\Pyproj\PySharePoint\sharepoint.py", line 23, in auth
self.authcookie = Office365(SHAREPOINT_URL, username=USERNAME, password=PASSWORD).GetCookies()
File "C:\Users\tdiacon\Pyproj\PySharePoint\venv\lib\site-packages\shareplum\office365.py", line 88, in get_cookies
sectoken = self.get_security_token(self.username, self.password)
File "C:\Users\tdiacon\Pyproj\PySharePoint\venv\lib\site-packages\shareplum\office365.py", line 80, in get_security_token
raise Exception('Error authenticating against Office 365. Error from Office 365:', message[0].text)
Exception: ('Error authenticating against Office 365. Error from Office 365:', 'AADSTS50126: Error validating credentials due to invalid username or password.')
Any ideas?