From f281ce79b3e8ceb0a795c7aae4dd3d00a99427f7 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Tue, 25 Feb 2025 09:24:24 -0600 Subject: [PATCH] bugfix --- src/tuhmayto/tracker.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tuhmayto/tracker.py b/src/tuhmayto/tracker.py index c206e48..0fb4927 100644 --- a/src/tuhmayto/tracker.py +++ b/src/tuhmayto/tracker.py @@ -46,8 +46,8 @@ def parse_last_seen(text: str) -> datetime | None: print(f"processing the following text: {text}") if "Visto por última vez" or "ltimos vistos" in text: days_match = re.search(r"(\d+) día", text) - hours_match = re.search(r"(\d+) horas", text) - minutes_match = re.search(r"(\d+) minutos", text) + hours_match = re.search(r"(\d+) hora", text) + minutes_match = re.search(r"(\d+) minuto", text) if days_match: days_ago = int(days_match.group(1)) return now - timedelta(days=days_ago) @@ -102,7 +102,6 @@ def scrape_and_log(url: str) -> None: def main(): url = "https://es.xhamsterporno.mx/users/johnneal911" setup_database() - print("chichis") scrape_and_log(url)