从共享点文件夹中读取 csv 错误 python gaierror: [Errno 11001] getaddrinfo failed

问题描述

您好,我正在尝试将存储在 sharepoint 文件夹中的 csv 文件读取到 Pandas 数据帧中,但出现错误,我不确定如何修复这里是我的代码

from requests_negotiate_sspi import HttpNegotiateAuth
url = 'https://bonitahouse.sharepoint.com'
fileUrl = 'site/file.csv'
r = requests.get(url + fileUrl,auth=HttpNegotiateAuth())
df = pd.read_csv(r.text)

我收到了一个 gaierror: [Errno 11001] getaddrinfo 失败以及这个错误:

ConnectionError: HTTPSConnectionPool(host='mysite.sharepoint.comhttps',port=443): Max retries 
exceeded with url:...

不确定这里发生了什么。谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)