Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

proxy setting with shareplum #187

Open
pentiumingace opened this issue May 24, 2022 · 0 comments
Open

proxy setting with shareplum #187

pentiumingace opened this issue May 24, 2022 · 0 comments

Comments

@pentiumingace
Copy link

i am trying to connect to sharepoint using python to upload/download files, from internet i found that we can use shareplum to do this, but i am getting an error related to proxy, does anyone have any ideas to do this?

from shareplum import Site
from shareplum import Office365
from shareplum.site import Version

authcookie = Office365('https://site.sharepoint.com/', username='user', password='password').GetCookies()
site = Site('https://site.sharepoint.com/sites/domain/', version=Version.v2016, authcookie=authcookie)
folder = site.Folder('Shared Documents/Testing')
file = folder.get_file('tes.csv')
with open("tes.csv", "wb") as fh:
fh.write(file)
print('---')
folder.upload_file('csv', 'tes.csv')
photo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant