使用shareplum访问sharepoint的问题

使用shareplum访问sharepoint的问题,sharepoint,Sharepoint,我正在尝试使用Shareplum访问sharepoint网站 from shareplum import Site from shareplum import Office365 authcookie = Office365('https://my.sharepoint.com', username='username@domain.edu', password='password').GetCookies() site = Site('https://my.sharepoint.com/pe

我正在尝试使用Shareplum访问sharepoint网站

from shareplum import Site
from shareplum import Office365

authcookie = Office365('https://my.sharepoint.com', username='username@domain.edu', password='password').GetCookies()
site = Site('https://my.sharepoint.com/personal/.../_layouts/15/onedrive.aspx', authcookie=authcookie)
sp_list = site.List('list items')
data = sp_list.GetListItems('All Items', rowlimit=200)
但是,当我尝试运行此脚本时,出现以下错误

Exception: ('ERROR:', 500, '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception of type \'Microsoft.SharePoint.SoapServer.SoapServerException\' was thrown.</faultstring><detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">\r\n    List does not exist.\r\n    The page you selected contains a list that does not exist.  It may have been deleted by another user.\r\n    </errorstring><errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000006</errorcode></detail></soap:Fault></soap:Body></soap:Envelope>')
Exception:('ERROR:',500,'soap:ServerException类型为'Microsoft.SharePoint.SoapServer.SoapServerException\'被抛出。\r\n列表不存在。\r\n您选择的页面包含一个不存在的列表。它可能已被其他用户删除。\r\n 0x82000006')

知道发生了什么吗?

错误表明指定的列表不存在。从站点url,我知道您希望从个人站点(onedrive)检索列表项。请参考以下代码,它在这里运行良好:

来自shareplum导入站点的

来自shareplum导入办公室365
从shareplum.site导入版本
从配置导入配置
#从配置中获取数据
username=config['sp_user']
password=config['sp_password']
authcookie=Office365('https://xxx-my.sharepoint.com,username=username,password=password)
地点=地点('https://xxx-my.sharepoint.com/personal/aaa_xxx_onmicrosoft_com,version=version.v365,authcookie=authcookie)
sp_list=站点列表(“文档”)
data=sp_list.GetListItems('All',行限制=10)
打印(数据)
GetListItems('All',row_limit=10)它类似于GetListItems('All Documents',row_limit=10)