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

publi

parent d3553818
No related branches found
No related tags found
No related merge requests found
Pipeline #176616 passed
pip install requests beautifulsoup4
File moved
import requests
from bs4 import BeautifulSoup
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,uri_s"
# 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
def download_image(image_url, image_path):
response = requests.get(image_url)
if response.status_code == 200:
with open(image_path, 'wb') as f:
f.write(response.content)
return True
else:
return False
def create_html(publications):
html_content = """
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Publications</title>
<style>
table {
width: 100%;
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
}
th, td {
padding: 10px;
text-align: left;
}
img {
max-width: 100px;
height: auto;
}
</style>
</head>
<body>
<h1>Liste des Publications</h1>
<table>
<tr>
<th>Image</th>
<th>Titre</th>
<th>Auteurs</th>
<th>Année</th>
</tr>
"""
for pub in publications:
title = pub.get('title_s', 'N/A')
authors = ', '.join(pub.get('authFullName_s', []))
year = pub.get('producedDateY_i', 'N/A')
uri = pub.get('uri_s', '')
# Télécharger l'image de la publication si disponible
image_path = ''
if uri:
soup = BeautifulSoup(requests.get(uri).content, 'html.parser')
img_tag = soup.find('img')
if img_tag and 'src' in img_tag.attrs:
image_url = img_tag['src']
image_path = f"images/{title.replace(' ', '_')}.jpg"
download_image(image_url, image_path)
html_content += f"""
<tr>
<td><img src="{image_path}" alt="Image de la publication"></td>
<td>{title}</td>
<td>{authors}</td>
<td>{year}</td>
</tr>
"""
html_content += """
</table>
</body>
</html>
"""
with open('publications.html', 'w', encoding='utf-8') as f:
f.write(html_content)
# Exemple d'utilisation
author_id = "alexandre-meyer"
publications = get_publications_from_hal(author_id)
if publications:
create_html(publications)
\ No newline at end of file
Titre : ['Body expression recognition from animated 3D skeleton'], Auteurs : ['Arthur Crenn', 'Rizwan Ahmed Khan', 'Alexandre Meyer', 'Saida Bouakaz'], Année : 2016
Titre : ['Point-based rendering of trees'], Auteurs : ['Guillaume Gilet', 'Alexandre Meyer', 'Fabrice Neyret'], Année : 2005
Titre : ["Représentations d'arbres réalistes et efficaces pour la synthèse d'images de paysages", 'Efficient Rendering of Realistic Trees Representations for Computer Graphics'], Auteurs : ['Alexandre Meyer'], Année : 2001
Titre : ['Adding physical like reaction effects to skeleton-based animations using controllable pendulums'], Auteurs : ['Ahmad Abdul Karim', 'Thibaut Gaudin', 'Alexandre Meyer', 'Axel Buendia', 'Saïda Bouakaz'], Année : 2011
Titre : ["A novel database of children's spontaneous facial expressions (LIRIS-CSE)"], Auteurs : ['Rizwan Ahmed Khan', 'Arthur Crenn', 'Alexandre Meyer', 'Saida Bouakaz'], Année : 2019
Titre : ['Learning-based pose edition for efficient and interactive design'], Auteurs : ['Léon Victor', 'Alexandre Meyer', 'Saïda Bouakaz'], Année : 2021
Titre : ['Automatic Analysis of Affective States: Visual Attention Based Approach'], Auteurs : ['Rizwan Ahmed Khan', 'Alexandre Meyer', 'Hubert Konik', 'Saida Bouakaz'], Année : 2014
Titre : ['Pose Metrics: a New Paradigm for Character Motion Edition'], Auteurs : ['Léon Victor', 'Alexandre Meyer', 'Saïda Bouakaz'], Année : 2023
Titre : ['Human vision inspired framework for facial expressions recognition'], Auteurs : ['Rizwan Ahmed Khan', 'Alexandre Meyer', 'Hubert Konik', 'Saida Bouakaz'], Année : 2012
Titre : ['Towards Removing Ghost-Components from Visual-Hull Estimations'], Auteurs : ['Brice Michoud', 'Erwan Guillou', 'Saida Bouakaz', 'Mathieu Barnachon', 'Alexandre Meyer'], Année : 2009
Titre : ['Multiscale Shaders for the Efficient Realistic Rendering of Pine-Trees'], Auteurs : ['Alexandre Meyer', 'Fabrice Neyret'], Année : 2000
Titre : ['Pure Physics-Based Hand Interaction in VR'], Auteurs : ['Mohammed-Bashir Mahdi', 'Erwan Guillou', 'Alexandre Meyer', 'Arash Habibi', 'Saïda Bouakaz'], Année : 2024
Titre : ['Toward an Efficient Body Expression Recognition Based on the Synthesis of a Neutral Movement'], Auteurs : ['Arthur Crenn', 'Alexandre Meyer', 'Rizwan Ahmed Khan', 'Hubert Konik', 'Saïda Bouakaz'], Année : 2017
Titre : ['Automatic Affect Analysis: From Children to Adults'], Auteurs : ['Rizwan Ahmed Khan', 'Alexandre Meyer', 'Saida Bouakaz'], Année : 2015
Titre : ['Stingray: Cone Tracing using a software DSM for SCI clusters'], Auteurs : ['Alexandre Meyer', 'Emmanuel Cecchet'], Année : 2001
Titre : ['Analyse, reconnaissance et synthèse d’expressions et de styles dans les mouvements', 'Analysis, recognition and synthesis of expressions and styles in movements'], Auteurs : ['Alexandre Meyer'], Année : 2023
Titre : ['Generic Spine Model with Simple Physics for Life-Like Quadrupeds and Reptiles'], Auteurs : ['Axel Buendia', 'Ahmad Abdul Karim', 'Thibaut Gaudin', 'Alexandre Meyer', 'Saïda Bouakaz'], Année : 2012
Titre : ['Saliency Based Framework for Facial Expression Recognition'], Auteurs : ['Rizwan Ahmed Khan', 'Alexandre Meyer', 'Hubert Konik', 'Saïda Bouakaz'], Année : 2017
Titre : ['Multi-Layer Level of Detail for Character Animation'], Auteurs : ['Yann Savoye', 'Alexandre Meyer'], Année : 2008
Titre : ["Reconnaissance d'expressions corporelles à l'aide d'un mouvement neutre synthétisé"], Auteurs : ['Arthur Crenn', 'Hubert Konik', 'Alexandre Meyer', 'Saïda Bouakaz'], Année : 2017
Titre : ['Easy Acquisition and Real-Time Animation of Facial Wrinkles'], Auteurs : ['Ludovic Dutreve', 'Alexandre Meyer', 'Saïda Bouakaz'], Année : 2011
Titre : ['Procedural Locomotion of Multi-Legged Characters in Dynamic Environments'], Auteurs : ['Ahmad Abdul Karim', 'Thibaut Gaudin', 'Alexandre Meyer', 'Axel Buendia', 'Saida Bouakaz'], Année : 2012
Titre : ['Intuitive Crowd Behaviour in Dense Urban Environments using Local Laws'], Auteurs : ['Celine Loscos', 'David Marchal', 'Alexandre Meyer'], Année : 2003
Titre : ['Framework for reliable, real-time facial expression recognition for low resolution images'], Auteurs : ['Rizwan Ahmed Khan', 'Alexandre Meyer', 'Hubert Konik', 'Saïda Bouakaz'], Année : 2013
Titre : ['Survey on Computer Representations of Trees for Realistic and Efficient Rendering'], Auteurs : ['Frédéric Boudon', 'Alexandre Meyer', 'Christophe Godin'], Année : 2006
Titre : ['Learning-based pose edition for efficient and interactive design (paper code)'], Auteurs : ['Léon Victor', 'Alexandre Meyer', 'Saïda Bouakaz'], Année : 2023
Titre : ['Separating superfluous from essential: which facial region(s) holds the key for expression recognition?'], Auteurs : ['Rizwan Ahmed Khan', 'Hubert Konik', 'Eric Dinet', 'Alexandre Meyer', 'Saïda Bouakaz'], Année : 2011
Titre : ['Real-Time Dynamic Wrinkles of Face for Animated Skinned Mesh'], Auteurs : ['Ludovic Dutreve', 'Alexandre Meyer', 'Saida Bouakaz'], Année : 2009
Titre : ['Textures volumiques interactives'], Auteurs : ['Alexandre Meyer', 'Fabrice Neyret'], Année : 1998
Titre : ['User-Guided Shape from Shading to Reconstruct Fine Details from a Single Photograph'], Auteurs : ['Alexandre Meyer', 'Hector M Briceño', 'Saida Bouakaz'], Année : 2007
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