Giter VIP home page Giter VIP logo

zenodo-upload's Introduction

zenodo-upload

upload big files to Zenodo.org using cURL, jq and bash

Uploading big files to https://zenodo.org from the commandline using the Zenodo API is not straight forward. zenodo_upload.sh tries to make this a little easier.

Inspired by Max Ogden's gist at https://gist.github.com/maxogden/b758cf0fe6d353846ef9ce7d03fdca0c .

prerequisites

  1. jq
  2. curl
  3. bash

usage

  1. open a terminal
  2. clone this repository
  3. set environment variable ZENODO_TOKEN to Zenodo access token (see https://zenodo.org/account/settings/applications/tokens/new/)
export ZENODO_TOKEN=[Zenodo access token]
  1. create a new publication in Zenodo using the web ui, enter some information (e.g., title) and click save
  2. in the browser, copy the deposition id (e.g., in https://zenodo.org/deposit/12345 , 12345 is the deposition id)
  3. in terminal and upload a file using
./zenodo_upload.sh [deposition id] [filename]
  1. on completion, you should see something like:
+ curl ...
######################################################################## 100.0%
  1. in the web ui, refresh the deposition page and observe that the file was uploaded.

zenodo-upload's People

Contributors

rcasero avatar shixiangwang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.