使用sharepy python连接到sharepoint时出现问题

使用sharepy python连接到sharepoint时出现问题,python,Python,我正在使用的代码 import sharepy from sharepy import connect from sharepy import SharePointSession server="https://company.sharepoint.com" user="user@company.com" // username password="passcode" //passcode s = sharepy.connect(server

我正在使用的代码

import sharepy
    from sharepy import connect
    from sharepy import SharePointSession 

    server="https://company.sharepoint.com"
    user="user@company.com" // username
    password="passcode" //passcode

    s = sharepy.connect(server,user,password)
错误:身份验证失败:AADSTS50126:由于用户名或密码无效,验证凭据时出错


它是SharePoint Online/O365网站吗?我试着像登录到office365>单击SharePoint一样打开它。您是否仅使用sharepy.connect(“此处为您的服务器url”)?SharePoint Online@GuillaumeRAYMONDthanks访问您的soapui网站先生,我复制了Cookie rtf和fedauth,并传入了头文件,现在我得到了200,并且能够下载文件。。。。。。