README.md 1.1 KB
Newer Older
Michael Wagner's avatar
Michael Wagner committed
1
# Zenodo harvester
Michael Wagner's avatar
Michael Wagner committed
2

Michael Wagner's avatar
Michael Wagner committed
3
4
- Support script for CRIS.   
- Researchers can have their research data and meta-data in CRIS.   
Michael Wagner's avatar
Michael Wagner committed
5
- Some might use Zenodo.  
Michael Wagner's avatar
Michael Wagner committed
6

Michael Wagner's avatar
Michael Wagner committed
7
8
9
10
11
12
13
14
15
16
17
This script searches [Zenodo.org](https://zenodo.org/) with given [ORCID(s)](https://orcid.org/) and returns the Zenodo data as a JSON.

## Zenodo specifics
- [Zenodo guide for developers](https://developers.zenodo.org/?python#sets)
- [example use of the request api in the browser](https://zenodo.org/search?page=1&size=20&q=creators.orcid:%220000-0003-0555-4128%22)
- how to do requests programatically:
```python
params={'q': 'creators.orcid:"' + orcid + '"'
response = requests.get('https://zenodo.org/api/records', params)
data = response.json()
```
Michael Wagner's avatar
Michael Wagner committed
18
- Zenodo limits the amount of requests: 60 requests per minute, 2000 requests per hour (20.10.2021)
Michael Wagner's avatar
Michael Wagner committed
19
20
21
22
23


## Using this script

### Quick Start: directly
Michael Wagner's avatar
Michael Wagner committed
24
25
1. Execute the zendodo_harvester.py
2. in **./json-results/** you'll find a folder per orcid, which contains all zenodo entries for that ID
Michael Wagner's avatar
Michael Wagner committed
26
27
28
29
30
31

### Quick Start: in your own code
````python
creators_orcids = ['0000-0003-0555-4128']
hits = harvest_by_orcid(creators_orcids)
````