Scarping company sharepoint using python

Lilach Saltoun Raz 1 Reputation point
2022-05-09T07:48:43.02+00:00

Hi

we are trying to scrape pages on the company sharepoint using python. We have tried using requests, Sharepy, office365-rest-client and pywebcopy, all failed.

I've attached the tries with the error message for requests, Sharepy and office365-rest-client.
For pywebcopy we got the following error:

Resolving ******.sharepoint.com (*********.sharepoint.com)... **********
Connecting to ******.sharepoint.com (******.sharepoint.com)|*****|:*****... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.

Can you please assist, or suggest a different method that I can try?

Thanks!

200145-office-error.jpg200106-sharepy-error-1.jpg200129-sharepy-error-2.jpg

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,741 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 31,681 Reputation points Microsoft Vendor
    2022-05-10T01:41:18.42+00:00

    Hi @Lilach Saltoun Raz ,
    Our forum mainly discuss about sharepoint development using C#, as your issue is about Python, we suggest you create a new thread on techcommunity for help.
    https://techcommunity.microsoft.com/t5/sharepoint-developer/bd-p/SharePointDev


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments