How do I download all files?
There is no out-of-the-box method to download all files, but it's possible with Uploadcare
Python library.
Ucare sync is a part of the library and it can be used for bulk downloading. Here is an instruction on how to use the
ucare tool.
You need to have Python installed on your computer. You can find detailed installation guides
here. Python has a number of great tools for isolation, one of the best is
virtualenv that comes along with
pip, a standard for Python package managing. Install
pip (locally or globally) if you don't have it yet.
-
$ pip install virtualenv
-
$ virtualenv pyuploadcare
# creates and activates a new environment $ source pyuploadcare/bin/activate
-
$ pip install pyuploadcare
# installs the library with all dependencies $ ucare sync --help
# optional-
$ ucare --pub_key demopublickey --secret demoprivatekey sync './local_uc/${uuid}/${filename}'
# will sync your remote project with public key demopublickey with local directory local_uc.
By default, ucare sync command returns 100 files maximum. If you need to sync more files, use the limit
parameter to specify the number of files to download:
$ ucare --pub_key demopublickey --secret demoprivatekey sync './local_uc/${uuid}/${filename}' --limit 1000
Don't forget to change demopublickey and demoprivatekey to your actual public/private keys.