dival.util.zenodo_download module
- dival.util.zenodo_download.download_zenodo_record(record_id, base_path='', md5sum_check=True, auto_yes=False)[source]
Download a zenodo record. Unfortunately, downloads cannot be resumed, so this method is only recommended for stable internet connections.
- Parameters:
record_id (str) – Record id.
base_path (str, optional) – Path to store the downloaded files in. Default is the current folder.
md5sum_check (bool, optional) – Whether to check the MD5 sum of each downloaded file. Default: True
auto_yes (bool, optional) – Whether to answer user input questions with “y” by default. User input questions are: If
md5sum_check=True
, in case of a checksum mismatch: whether to retry downloading. Ifmd5sum_check=False
, in case of an existing file of correct size: whether to re-download. Default: False
- Returns:
success – If
md5sum_check=True
, whether all sums matched. Otherwise the returned value is alwaysTrue
.- Return type:
bool