使用shareplum访问共享点的问题

问题描述 投票:0回答:1

我正在尝试使用Shareplum访问共享点站点。

from shareplum import Site
from shareplum import Office365

authcookie = Office365('https://my.sharepoint.com', username='[email protected]', 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>')

有什么想法吗?

sharepoint
1个回答
0
投票
错误表明指定的列表不存在。从网站网址,我知道您想从个人网站(onedrive)检索列表项。请参考以下代码,在这里效果很好:
© www.soinside.com 2019 - 2024. All rights reserved.