使用 Python 访问 Sharepoint
需要您的帮助来访问我的组织中的共享点列表。下面是我正在使用的代码。 登录到共享点后,我想访问列表并修改它的几个字段。
from shareplum import Site
from requests_ntlm import HttpNtlmAuth
from shareplum.site import Version
cred = HttpNtlmAuth('some_user_email_id', 'password')
site = Site('https://findout.america.net',version=Version.v2019 , auth= cred)
我也使用过授权cookies,但没有用。
错误:
shareplum.errors.ShareplumRequestError:Shareplum HTTP Post 失败:HTTPSConnectionPool ***一些文本 ** _vti_bin/Sites.asmx(由 SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地文件引起)颁发者证书 (_ssl.c:1076)')))
使用的工具: Sharepoint 本地版本 2019 pycharm IDE 中的 Python 3.7
如果有任何问题需要澄清,请告诉我。
问候,
Need your help in accessing sharepoint list in my org. below is the code i'm using.
After logging into sharepoint i wanted to access list and modify few fields to it.
from shareplum import Site
from requests_ntlm import HttpNtlmAuth
from shareplum.site import Version
cred = HttpNtlmAuth('some_user_email_id', 'password')
site = Site('https://findout.america.net',version=Version.v2019 , auth= cred)
i had used authorize cookies as well, it didn't work.
Error:
shareplum.errors.ShareplumRequestError: Shareplum HTTP Post Failed : HTTPSConnectionPool ***some text ** _vti_bin/Sites.asmx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))
Tools Being used:
Sharepoint On-Premise Version 2019
Python 3.7 in pycharm IDE
Let me know if anything needs clarification.
Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论