我正在尝试使用以下代码从我的共享点下载文本文件。
from shareplum import Site
from shareplum import Office365
from shareplum import folder
authcookie = Office365('https://my.sharepoint.com', username='username', password='password').GetCookies()
site = Site('https://my.sharepoint.com/', authcookie=authcookie)
folder_1 = site.folder('Shared Documents/This folder')
folder_1.download_file('test.txt')
Run Code Online (Sandbox Code Playgroud)
当我运行代码时出现以下错误:
AttributeError: '_Site2007' object has no attribute 'folder'
Run Code Online (Sandbox Code Playgroud)
任何帮助表示赞赏
sharepoint ×1