From 5192b1955cca1f43efd7ca3831d845230ad77ac1 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 18 May 2025 17:41:50 +0000 Subject: [PATCH] export agency --- crawler/data_access.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crawler/data_access.py b/crawler/data_access.py index a658543..6add81a 100644 --- a/crawler/data_access.py +++ b/crawler/data_access.py @@ -29,6 +29,7 @@ class Listing: "updated_days", "status", "last_seen", + "agency", ] @staticmethod @@ -287,6 +288,10 @@ class Listing: status = self.detailobject["property"]["status"] return status + @property + def agency(self) -> str: + return self.detailobject['property']["branch"]["brandName"] + def dict_nicely(self): return { "identifier": @@ -319,4 +324,6 @@ class Listing: self.status, "last_seen": self.last_seen, + "agency": + self.agency, }