From 0d78b1aec3844287d5d50b239739dd7cdb487edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Sat, 7 Feb 2026 23:11:12 +0100 Subject: [PATCH] ajout EXO4 --- main.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 814d42b..fb2a45e 100644 --- a/main.py +++ b/main.py @@ -33,9 +33,12 @@ class ScraperData: dict[str, object], current_value.get(name) ) if app_dict: - return cast(str, app_dict.get("valueId")) + return cast(str, app_dict.get("valueId")).rstrip("+") return None + def parker(self) -> str | None: + return self._getvin("note_rp") + def robinson(self) -> str | None: return self._getvin("note_jr") @@ -179,4 +182,7 @@ class Scraper: print(f"Erreur lors de l'extraction JSON : {e}", file=stderr) return ScraperData({}) -print(Scraper().getjsondata("/chateau-gloria-2016.html").suckling()) \ No newline at end of file +# file = Scraper().getjsondata("/chateau-gloria-2016.html") +# print("parker: ", file.parker()) +# print("robinson: ", file.robinson()) +# print("suckling: ", file.suckling()) \ No newline at end of file