【发布时间】:2018-06-20 09:06:41
【问题描述】:
以下代码(更改了变量)是我试图用来联系共享点服务器(并最终从中下载文件)的代码。但我似乎遇到了与 urllib 相关的错误,我无法找出原因。
from sharepoint import SharePointSite, basic_auth_opener
server_url = "http://sharepoint.domain.com/"
opener = basic_auth_opener(server_url, "domain/username", "password")
site = SharePointSite(server_url, opener)
sp_list = site.lists
for sp_list in site.lists:
print(sp_list.id, sp_list.meta['Title'])
报错如下
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
【问题讨论】:
标签: python-3.x sharepoint urllib ntlm