cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to download all files using python sdk?

Is it possible to download all files using python sdk?

pyraxic
Helpful | Level 6
Go to solution

Is it possible to download all files from my dropbox account using Python sdk?

https://dropbox-sdk-python.readthedocs.io

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
5 Replies 5

Greg-DB
Dropbox Staff
Go to solution

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_d...

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_l...
https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox.Dropbox.files_l...

lekha
Explorer | Level 3
Go to solution

why the links can't open ?.all links show error messege.

Greg-DB
Dropbox Staff
Go to solution

@lekha Thanks for letting me know. It looks like the documentation link format changed. I edited my post with the new correct ones.

pii_dee
New member | Level 2
Go to solution

I want filtered data like downloading the latest 10 files from a directory. How it can be done?

 

Здравко
Legendary | Level 20
Go to solution

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    pii_dee New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    lekha Explorer | Level 3
What do Dropbox user levels mean?