iamlu-coding / python-download-sharepoint-file Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I am getting the following error while trying to download a file using sharepy.Kindly help
sharepy.errors.AuthError: Authentication Failure: AADSTS50005: User tried to log in to a device from a platform (Unknown) that's currently not supported through Conditional Access policy. Supported device platforms are: iOS, Android, Mac, and Windows flavors
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.