Skip to content

Commit

Permalink
feat(zonaprop): Update zonaprop div names
Browse files Browse the repository at this point in the history
in your face zonaprop

Signed-off-by: nothingbutlucas <[email protected]>
  • Loading branch information
nothingbutlucas committed Mar 21, 2024
1 parent 6c613e1 commit ef48174
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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 = (
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ef48174

Please sign in to comment.