bugfix
This commit is contained in:
parent
bc93bb48cb
commit
f281ce79b3
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user