diff --git a/0-collect-data/rdg.py b/0-collect-data/rdg.py index 138b3ac0ea8a66c4d01817468b99438c74b4c2d9..53cffb6c6886dc07028f6b4df2dd3990e9438f31 100644 --- a/0-collect-data/rdg.py +++ b/0-collect-data/rdg.py @@ -22,9 +22,9 @@ urls = [ 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=producerAffiliation%3AUGA', 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=contributorAffiliation%3AUGA', 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=datasetContactAffiliation%3A(Grenoble AND Alpes)', - 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=authorAffiliation%3AGrenoble(Grenoble AND Alpes)', - 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=producerAffiliation%3AGrenoble(Grenoble AND Alpes)', - 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=contributorAffiliation%3AGrenoble(Grenoble AND Alpes)' + 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=authorAffiliation%3A(Grenoble AND Alpes)', + 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=producerAffiliation%3A(Grenoble AND Alpes)', + 'https://entrepot.recherche.data.gouv.fr/api/search?q=*&fq=contributorAffiliation%3A(Grenoble AND Alpes)' # possiblilité d'ajouter d'autres requêtes ] @@ -39,7 +39,7 @@ def get_results(url): count = nb_res page = 1 while(nb_res > 0): - newurl = url+"&start="+str(count) + newurl = url+"&type=dataset"+"&start="+str(count) req = requests.get(newurl) results.append(req.json()) nb_res = results[page]["data"]["count_in_response"]