[英]Upload Excel file to Sharepoint using Python
from shareplum import Site
from shareplum import Office365
from shareplum.site import Version
authcookie = Office365('https://********.sharepoint.com/', username='dhruvpanchal@******.onmicrosoft.com', password='********').GetCookies()
site = Site('https://******.sharepoint.com/sites/BorakayInternal', version=Version.v2019, authcookie=authcookie)
folder = site.Folder('Shared Documents/This Folder')
folder.upload_folder('ConsolidatedTimesheet.xlsx')
In this code i get error:-在这段代码中我得到错误: -
folder.upload_folder('ConsolidatedTimesheet.xlsx')
AttributeError: '_Folder' object has no attribute 'upload_folder'
Can anyone help me solve this?谁能帮我解决这个问题?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.