How to extract wiki page/site page text content which user wrote using python?

Priyansh Agrawal 0 Reputation points
2023-07-27T14:11:24.6366667+00:00

I have sharepoint wikis in aspx format url looks something like this https://domain.sharepoint.com/sites/SiteName/SitePages/name.aspx

User's image

I am trying to extract the text I wrote "This is a wiki page to test" but I am not able to do it using Python Office365-REST-Python-Client. Can someone help me with this?

I want to just extract my content but when I use the office365 library and read content in aspx file it doesn't show my text content it has some random asp:content and all.

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-07-28T09:03:23.26+00:00

    Hi @priyansh agrawal

    Here are some template codes for your reference, hope it can help you

    https://github.com/vgrem/Office365-REST-Python-Client/tree/master/examples/sharepoint


    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.

    Best Regards

    Cheng Feng


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.