From 78f6b25e434906869af9b8bdf849c436007d7d25 Mon Sep 17 00:00:00 2001 From: Enrique Garcia <garcia@lapp.in2p3.fr> Date: Thu, 9 Sep 2021 00:48:32 +0200 Subject: [PATCH] update notebook content --- examples/notebooks/Harvest_zenodo.ipynb | 31 +++++++++++++++---------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/examples/notebooks/Harvest_zenodo.ipynb b/examples/notebooks/Harvest_zenodo.ipynb index 1bf49153..06a835b5 100644 --- a/examples/notebooks/Harvest_zenodo.ipynb +++ b/examples/notebooks/Harvest_zenodo.ipynb @@ -29,11 +29,9 @@ " + $+$ More efficient harvest:\n", " - faster,\n", " - thought for large and continues queries of a repository.\n", - " - No token needed to harvest and fetch entries.\n", " + $-$ Metadata representation of files is provided by the data provider.\n", " - Using the REST API;\n", " + $+$ Access to the full entry/record/community information.\n", - " + $-$ An [access token](https://zenodo.org/account/settings/applications/) is needed to communicate with the REST API.\n", " + $-$ Harvest not optimised for large searches." ] }, @@ -127,7 +125,8 @@ "id": "f9ad3584", "metadata": {}, "source": [ - " No token is needed to fetch metadata files provided by Zenodo (the provider). However please note that the **metadata schema representation of the records is chosen by the provider !** \n", + " No token is needed to fetch metadata files provided by Zenodo (the provider). \n", + " However please note that the **metadata schema representation of the records is chosen by the provider !** \n", " \n", "Zenodo supports the following schema representations:\n", " - `DataCite` (various version),\n", @@ -164,34 +163,42 @@ "import requests" ] }, + { + "cell_type": "markdown", + "id": "87f186f9", + "metadata": {}, + "source": [ + "We would need to specify some arguments to reduce the search" + ] + }, { "cell_type": "code", - "execution_count": 24, - "id": "076bfee8", + "execution_count": 3, + "id": "5ee3a192", "metadata": {}, "outputs": [], "source": [ - "token = ''" + "parameters = {'communities': 'escape2020',\n", + " 'size':100}" ] }, { "cell_type": "markdown", - "id": "87f186f9", + "id": "e268aef2", "metadata": {}, "source": [ - "We would need to specify some arguments to reduce the search" + "**NOTE** No token is needed to fetch/communicate with the REST API. \n", + "However, you would need to [create one](https://zenodo.org/account/settings/applications/) if you would like to write or publish through the API." ] }, { "cell_type": "code", "execution_count": 4, - "id": "5ee3a192", + "id": "ddccf248", "metadata": {}, "outputs": [], "source": [ - "parameters = {'access_token': token,\n", - " 'communities': 'escape2020',\n", - " 'size':100}" + "token = ''" ] }, { -- GitLab