OneDrive / onedrive-sdk-python

OneDrive SDK for Python! https://dev.onedrive.com
MIT License
1.08k stars 189 forks source link

List and download subfolders and files in a publicly shared directory #207

Open dutta-alankar opened 10 months ago

dutta-alankar commented 10 months ago

Hi,

I have a publicly shared link accessing which requires no authentication. I want to list all the contents in this directory and its sub-directories and download the files one by one. How to do this using onedrive-sdk-python? I am a newbie in this. Please help.

Link: https://indianinstituteofscience-my.sharepoint.com/:f:/g/personal/alankardutta_iisc_ac_in/EhdL9SYY45FOq7zjrWGD0NQBcy3pn6oTP2B9pGhxPwLnkQ?e=E956ug

twmht commented 4 days ago

@dutta-alankar

do you know how to do that?

dutta-alankar commented 4 days ago

No! I couldn't figure this out. I generated individual links for every item and appended ?download=1 at the end of the links.