mirror of
https://github.com/guezoloic/millesima_projetS6.git
synced 2026-03-28 19:13:42 +00:00
juste un test
This commit is contained in:
9
main.py
9
main.py
@@ -86,3 +86,12 @@ class Scraper:
|
||||
except json.decoder.JSONDecodeError:
|
||||
pass
|
||||
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
BIN
projet.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user