juste un test

This commit is contained in:
Chahrazad650
2026-02-05 18:28:07 +01:00
parent 367d995feb
commit 5797b72cbc
2 changed files with 9 additions and 0 deletions

View File

@@ -86,3 +86,12 @@ class Scraper:
except json.decoder.JSONDecodeError: except json.decoder.JSONDecodeError:
pass pass
return {} return {}
def prix(self) -> str:
"""
Extrait le prix du vin à partir de la page actuelle.
:return str: Le prix du vin ou une chaîne vide si non trouvé.
"""
price_element = self._soup.find("span", class_="price")
if price_element:
return price_element.text.strip()
return ""

BIN
projet.pdf Normal file

Binary file not shown.