<reponame>rikeshtailor/Office365-REST-Python-Client<gh_stars>100-1000
from office365.sharepoint.client_context import ClientContext
from tests import test_client_credentials, test_site_url

ctx = ClientContext(test_site_url).with_credentials(test_client_credentials)
target_web = ctx.web.get().execute_query()
print(target_web.url)

from office365.sharepoint.client_context import ClientContext
from tests import test_client_credentials, test_site_url

ctx = ClientContext(test_site_url).with_credentials(test_client_credentials)
target_web = ctx.web.get().execute_query()
print(target_web.url)