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}")
|
print(f"processing the following text: {text}")
|
||||||
if "Visto por última vez" or "ltimos vistos" in text:
|
if "Visto por última vez" or "ltimos vistos" in text:
|
||||||
days_match = re.search(r"(\d+) día", text)
|
days_match = re.search(r"(\d+) día", text)
|
||||||
hours_match = re.search(r"(\d+) horas", text)
|
hours_match = re.search(r"(\d+) hora", text)
|
||||||
minutes_match = re.search(r"(\d+) minutos", text)
|
minutes_match = re.search(r"(\d+) minuto", text)
|
||||||
if days_match:
|
if days_match:
|
||||||
days_ago = int(days_match.group(1))
|
days_ago = int(days_match.group(1))
|
||||||
return now - timedelta(days=days_ago)
|
return now - timedelta(days=days_ago)
|
||||||
@ -102,7 +102,6 @@ def scrape_and_log(url: str) -> None:
|
|||||||
def main():
|
def main():
|
||||||
url = "https://es.xhamsterporno.mx/users/johnneal911"
|
url = "https://es.xhamsterporno.mx/users/johnneal911"
|
||||||
setup_database()
|
setup_database()
|
||||||
print("chichis")
|
|
||||||
scrape_and_log(url)
|
scrape_and_log(url)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user