From ef4817476e2201ffa4456fc4fc6726469d7916ef Mon Sep 17 00:00:00 2001 From: nothingbutlucas <69118979+nothingbutlucas@users.noreply.github.com> Date: Wed, 20 Mar 2024 22:33:25 -0300 Subject: [PATCH] feat(zonaprop): Update zonaprop div names in your face zonaprop Signed-off-by: nothingbutlucas <69118979+nothingbutlucas@users.noreply.github.com> --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b4ce753..e9f10e9 100755 --- a/main.py +++ b/main.py @@ -13,7 +13,7 @@ TOKEN = os.environ.get("TOKEN", "") room = os.environ.get("ROOM", "") horas = os.environ.get("HORAS", 3) -logging_level = os.environ.get("LOGGING_LEVEL", "INFO") +logging_level = os.environ.get("LOGGING_LEVEL", "DEBUG") minutos = int(horas) * 60 logging.basicConfig( @@ -37,6 +37,8 @@ def extract_links(self, contents: str): ads = soup.select(self.link_regex) log.debug("=" * 50) log.debug(ads) + log.debug("=" * 50) + log.debug(ads) for ad in ads: href_string = ( @@ -69,7 +71,7 @@ def extract_links(self, contents: str): ), Parser( website="https://www.zonaprop.com.ar", - link_regex="div.postings-container div.sc-1tt2vbg-3 div.sc-i1odl-0", + link_regex="div.postings-container div.sc-1tt2vbg-5 div.sc-i1odl-0", ), Parser( website="https://inmuebles.mercadolibre.com.ar",