Small tool to upload Open Science Radio episodes to Zenodo. If you want to adapt this for your own needs please be aware that some meta information is hard coded.
Step 1 - Download the file and compile the meta data.
$ ./osr-zenodo-uploader.py compile_data -u http://www.openscienceradio.de/2015/01/29/osr028-unseminars-mit-aidan-budd/ -o OSR028
This should lead to the following folde/file structure:
OSR028
├── meta.json
├── OSR028-unseminars-mit-aidan-budd
├── OSR028-unseminars-mit-aidan-budd.m4a
├── OSR028-unseminars-mit-aidan-budd.mp3
└── OSR028-unseminars-mit-aidan-budd.opus
You can edit the meta data file manually if needed or upload the episode without any changes to Zenodo.
WORK IN PROGRESS: Step 2 - Zenodo submission:
$ ./osr-zenodo-uploader.py upload -i OSR028
$ pip install beautifulsoup4 requests wget
Token creation at zenodo:
Helpful documentation: