Skip to content
Snippets Groups Projects
Commit 7421cc8e authored by Alexandre MEYER's avatar Alexandre MEYER
Browse files

...

parent d5305d73
No related branches found
No related tags found
No related merge requests found
Pipeline #176557 passed
import requests
def get_publications_from_hal(author_id):
# URL pour l'API de HAL
url = f"https://api.archives-ouvertes.fr/search/?q=authIdHal_s:{author_id}&wt=json&fl=title_s,authFullName_s,producedDateY_i"
# Envoyer une requête GET à l'API de HAL
response = requests.get(url)
# Vérifier si la requête a réussi
if response.status_code == 200:
data = response.json()
publications = data['response']['docs']
return publications
else:
print(f"Erreur : Impossible de récupérer les données de l'API de HAL. Code de statut : {response.status_code}")
return None
# Exemple d'utilisation
author_id = "alexandre-meyer"
publications = get_publications_from_hal(author_id)
if publications:
for pub in publications:
print(f"Titre : {pub['title_s']}, Auteurs : {pub['authFullName_s']}, Année : {pub['producedDateY_i']}")
\ No newline at end of file
...@@ -16,7 +16,7 @@ My research is at the interface between computer graphics and computer vision, w ...@@ -16,7 +16,7 @@ My research is at the interface between computer graphics and computer vision, w
List of publications List of publications
* [LIRIS](https://liris.cnrs.fr/membres?idn=ameyer&set_language=fr) * [LIRIS](https://liris.cnrs.fr/membres?idn=ameyer&set_language=fr)
* [GoogleScholar](https://scholar.google.com/citations?user=hfS9EakAAAAJ&hl=fr) * [GoogleScholar](https://scholar.google.com/citations?user=hfS9EakAAAAJ&hl=fr)
* [DBLP](http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/m/Meyer:Alexandre.html) * [DBLP](https://dblp.org/pid/37/1744.html)
* [HAL](https://cv.archives-ouvertes.fr/alexandre-meyer) * [HAL](https://cv.archives-ouvertes.fr/alexandre-meyer)
* [ORCID](https://orcid.org/0000-0002-0249-1048) * [ORCID](https://orcid.org/0000-0002-0249-1048)
......
web/static/gallery/hand_vr.png

109 KiB

web/static/gallery/hand_vr2.png

45.3 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment