We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
pyraxic
8 years agoHelpful | Level 6
Is it possible to download all files using python sdk?
Is it possible to download all files from my dropbox account using Python sdk? https://dropbox-sdk-python.readthedocs.io
- 8 years ago
Yes, you can use the Python SDK to download files using the files_download method:
https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.files_download
You need to call that once per file you want.
You can list the files using files_list_folder and files_list_folder_continue:
https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.files_list_folder
https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.files_list_folder_continue
pii_dee
4 years agoNew member | Level 2
I want filtered data like downloading the latest 10 files from a directory. How it can be done?
- Здравко4 years agoLegendary | Level 20
Hi pii_dee,
Using rules pointed in the solution above, you can list folder(s) you want and receive files list there together with all accessible files attributes. Now you can reorder and filter all entries in received list according rules you want. Finally go further and download selected subset of the files list (again, using guides above - the example). 😉
Hope this helps.
Add: One example you can follow/get idea.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!