This python script allows you to calculate statistics of your Zenodo records and write them into an XLS-File.
- Records are parsed using the Zenodo REST-API
- Zenodo store several download and view numbers for each record, which looks like
"stats": {
"downloads": 10,
"unique_downloads": 2,
"unique_views": 2,
"version_downloads": 10,
"version_unique_downloads": 2,
"version_unique_views": 2,
"version_views": 6,
"views": 6
},
- Write an output as *xlsx.
This script makes usage of the following python libraries
Requests
argparse
pandas
- Search for records by a given Zenodo-Community name
- The Script sums up
version_unique_downloads
andversion_unique_views
for each community detected in a record
python3 community_stats.py -c {YOUR_COMMUNITY} -o {YOUR_OUTPUTFILE.xlsx}