Download single dataset files

DownloadSingleDatasetFiles.py

from LOGS import LOGS

# Connect to LOGS
logs = LOGS()


# Get a datasets
# in this example we use the first element of the datsets iterator
# alternatively a dataset with known id (e.g. 233) could also be used like `dataset = logs.dataset(233)`
dataset = logs.datasets().first()

if dataset:
    # The zip file with the respective datset files will be downloaded into the current directory
    # it s also possible to specify a target directory (e.g. for '/home/my_home/logs_files') `zipFile = dataset.download("/home/my_home/logs_files")`
    zipFile = dataset.download()
    print("Dataset file was downloaded into %a" % zipFile)