From 9067d453270b7ec81d8615f911b16c9444e4bb34 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 18 May 2025 18:02:19 +0000 Subject: [PATCH] add council tax band when exporting --- crawler/data_access.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crawler/data_access.py b/crawler/data_access.py index 6add81a..c8f6551 100644 --- a/crawler/data_access.py +++ b/crawler/data_access.py @@ -30,6 +30,7 @@ class Listing: "status", "last_seen", "agency", + "council_tax_band", ] @staticmethod @@ -292,6 +293,11 @@ class Listing: def agency(self) -> str: return self.detailobject['property']["branch"]["brandName"] + @property + def councilTaxBand(self) -> str: + return self.detailobject['property']["councilTaxInfo"]["content"][0][ + "value"] + def dict_nicely(self): return { "identifier": @@ -326,4 +332,6 @@ class Listing: self.last_seen, "agency": self.agency, + "council_tax_band": + self.councilTaxBand, }