Skip to content

Get html source of sharepoint page? #491

Description

@WG-

How can I easily fetch the html source code from a sharepoint page?

The snippet below works but I do not manage to get the plain html content?

from office365.runtime.auth.user_credential import UserCredential
from office365.sharepoint.client_context import ClientContext
site_url = "https://company.sharepoint.com/sites/<some site>"
ctx = ClientContext(site_url).with_credentials(UserCredential("[email protected]", "somepassword"))
web = ctx.web
ctx.load(web)
ctx.execute_query()
print(web.properties)
print(ctx.web.get().execute_query())

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedsharepointSharePoint REST v1 API, ClientContext

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions