def get_expenses(self, soup): text = self.get_feature(soup, "Expensas") return clear(text)
def get_room_count(self, soup): text = self.get_feature(soup, "Cantidad de ambientes") return clear(text)
def get_price(self, soup): data = soup.select(".Fl.FilaDatos")[0] text = data.select(".Detalle")[0].text return clear(text)
def get_surface(self, soup): text = self.get_feature(soup, "Superficie Cubierta") return clear(text)
def get_address(self, soup): data = soup.select(".Fl.FilaDatos")[0] text = data.select(".Detalle")[3].text[18:] return clear(text)
def get_feature(self, soup, selector): label = soup.select(selector) if len(label) is 0: return "-" text = label[0].text return clear(text)
def get_address(self, soup): street = soup.select("#detalle_calle div")[0].text number = soup.select("#nro_numero")[0].text text = street + " " + number return clear(text)