From a662741ea26972bae3fbfe6d4b82cb3b5b1b3ea7 Mon Sep 17 00:00:00 2001 From: BelKed <66956532+BelKed@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:38:33 +0100 Subject: [PATCH] Update parsing to reflect changes on the Geocaching website --- pycaching/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycaching/cache.py b/pycaching/cache.py index afd5679..e0c3504 100644 --- a/pycaching/cache.py +++ b/pycaching/cache.py @@ -974,7 +974,7 @@ def _get_log_counts_from_cache_details(soup): :param bs4.BeautifulSoup soup: Parsed html document of the cache details page. """ lbl_find_counts = soup.find("span", {"id": "ctl00_ContentBody_lblFindCounts"}) - log_totals = lbl_find_counts.find("ul", "LogTotals") + log_totals = lbl_find_counts.find("ul", {"aria-labelledby": "LoggedVisits"}) # Text gives numbers separated by a lot of spaces, splitting retrieves the numbers. # The values might contain thousand separators, which we have to remove before converting