获取sharepoint列表数据到python数据框架



我已经在sharepoint->我的列表。以下是URL

url = 'https://xxxxx-my.sharepoint.com/personal/account@******.com/Lists/MySamplelist/AllItems.aspx?env=WebViewList'
username = 'account@*****.com'
password = 'pwd'
cred = HttpNtlmAuth(username, password)
site = Site(url, auth=cred, verify_ssl=False)

当试图通过site()使用上面的URL从sharepoint加载数据时,我得到如下错误

ShareplumRequestError: Shareplum HTTP Post Failed : 403 Client Error: Forbidden for url: 
'https://xxxxx-my.sharepoint.com/personal/account@******.com/Lists/MySamplelist/AllItems.aspx?env=WebViewList'

请让我知道我能做些什么来摆脱错误和加载sharepoint列表数据?

目前,SharePointAzure Databricks不支持.

有其他选择吗?

是的,有几个选项读取Azure Databricks中的共享点文件.

选项1:使用azure逻辑应用将文件从SharePoint传输到Blob存储,然后将存储帐户挂载到Azure Databricks并从存储帐户读取数据。

选项2:使用Azure Data Factory从SharePoint复制文件到Azure blob存储.

你可以参考这个文档要了解更多有关将Azure Blob存储容器挂载到Azure Databricks的信息。