Skip to content

Instantly share code, notes, and snippets.

@Pouyar69
Pouyar69 / zenodo-upload.py
Last active April 25, 2023 12:16 — forked from slint/zenodo-upload.py
edited version of zenodo-upload.py which has a progress bar. thanks to https://loganbvh.github.io/
import os
import requests
from tqdm import tqdm # pip install tqdm
from tqdm.utils import CallbackIOWrapper
params = {'access_token': '<your-access-token>'}
# Create the deposit resource
url = "https://zenodo.org/api/deposit/depositions/<your-deposit-id>"
headers = {"Content-Type": "application/json"}