我正在使用以下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)