/zenodo_dl-all

Instructions to download all files from a Zenodo record

MIT LicenseMIT

Instructions Zenodo - download all

Ivan Calandra 2020-08-26 12:28:04

Purpose

This document details the steps to download all the files from a given Zenodo record, either using R or Python.


R instructions

These instructions use the package zen4R by Emmanuel Blondel.

Installation

library(devtools)
install_github("eblondel/zen4R")

Running

library(zen4R)
download_zenodo("Zenodo_doi", path = "target_directory")

Simple example

download_zenodo("10.5281/zenodo.3632517", path = "D:/Zenodo")

More practical example

doi <- "10.5281/zenodo.3632517"
target_folder <- paste0("D:/Zenodo/", basename(doi))
dir.create(target_folder)
download_zenodo(doi, path = target_folder)

Python instructions

These instructions use the package zenodo_get by David Völgyes.
It requires Python 3 to work.

These instructions are for Windows 10. Linux and Mac users will hopefully be able to adapt them themselves.

All of these commands are to be run in the Windows PowerShell (press the “Windows” key or click on the “Start” icon, and type “powershell” to open it).

Installation

python -m pip install zenodo_get --user

Running

chdir target_directory
python -m zenodo_get Zenodo_doi -m -e -k

Example

mkdir D:\Zenodo\zenodo.3632517
chdir D:\Zenodo\zenodo.3632517
python -m zenodo_get 10.5281/zenodo.3632517 -m -e -k