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:
Python has a number of great tools for isolation, one the best, virtualenv
, comes along with pip
, a new 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 public/private keys.