如何使用python REST调用将sharepoint list数据导出到csv?

时间:2018-04-27 13:18:32

标签: python rest csv sharepoint

我正在使用以下Python代码,该代码提供状态代码200,但我希望此脚本获取SharePoint列表数据并将其导出为CSV。

import requests
from requests_ntlm import HttpNtlmAuth

auth = HttpNtlmAuth('username','pass')

r = requests.get(
"https://sps16.com/sites/url/",
verify=False,
auth=auth,
headers={
'Accept': "application/json",
}

)
#print (r.json())
print (r.status_code)
print (r.headers)

0 个答案:

没有答案