ajout de la fonction informations

This commit is contained in:
Chahrazad650
2026-02-10 01:25:00 +01:00
parent 717fce6ca4
commit bfc39db652
2 changed files with 19 additions and 0 deletions

15
main.py
View File

@@ -171,6 +171,21 @@ class _ScraperData:
def getdata(self) -> dict[str, object]:
return self._data
def informations(self) -> str:
"""
Retourne toutes les informations sous la forme :
"Appelation,Parker,J.Robinson,J.Suckling,Prix"
"""
appellation = self.appellation()
parker = self.parker()
robinson = self.robinson()
suckling = self.suckling()
prix = self.prix()
return f"{appellation},{parker},{robinson},{suckling},{prix}"
class Scraper:
"""