Office365-REST-Python-Client
Office365-REST-Python-Client copied to clipboard
Microsoft 365 & Microsoft Graph Library for Python
I want to download a sharepoint page as pdf or some other extension into my local. during pages.canvas_content, I am getting the image urls and all, which I don't want....
I would like to [CRUD](https://pl.wikipedia.org/wiki/CRUD) files on Sharepoint. To do this I'm trying to follow [this basic example](https://github.com/vgrem/Office365-REST-Python-Client/blob/master/examples/sharepoint/connect_with_user_credential.py): ``` from office365.sharepoint.client_context import ClientContext settings = { 'url': 'https://*****.sharepoint.com/sites/*****', 'user_credentials': {...
Low priority request since I have a workaround. If I try to download a file using the `File.open_binary` method like this: ``` with open("my_local_filepath", "wb") as output_file: response = File.open_binary(client_context,...
I need to download all files from certain path. Now I do it manually Therefore, I want to access sharepoint files with my personal account and download files manually. Below...
Thank you for your contributions. I attempted to use this example with a URL that contains Japanese characters: https://github.com/vgrem/Office365-REST-Python-Client/blob/master/examples/onedrive/files/get_by_abs_url.py However, it resulted in the following exception: ``` Traceback (most recent...
I tried to create DocumentSets in a batch but it failed as the execute_batch ignores the DocumentSet completely `` for anlagennummer in anlagennummern: DocumentSet.create(self.ctx, server_doc_lib, str(int(anlagennummer))) try: self.ctx.execute_batch(3) print(f"Created {len(anlagennummern)}...
I got: 'Attempted to perform an unauthorized operation.', "403 Client Error: Forbidden for url:.... when i tried to download not from my own sharepoint but still public and accessible from...
This is the code snippet I have, this works fine ``` for file in files: empty_batch_dict[file.serverRelativeUrl] = file.get_content() logger.info("[Ok] file has been added to batch: {0}".format(file.serverRelativeUrl)) print("All files downloaded") ctx.execute_query()...
I received the following issue: ```python Some algorithms requires "pip install cryptography". See https://pyjwt.readthedocs.io/en/latest/installation.html#cryptographic-dependencies-optional Traceback (most recent call last): File "C:\Users\jnguyen-a\AppData\Local\Programs\Python\Python311\Lib\site-packages\jwt\algorithms.py", line 350, in prepare_key RSAPrivateKey, load_pem_private_key(key_bytes, password=None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File...
I am using GraphClient to connecto to Sharepoint and Planner. I check a long list of local files and compare them to files in SharePoint. If the files don't exist...