Skip to content

Commit ce627ee

Browse files
authored
Merge pull request #240 from BelKed/logged-visits
Update parsing to reflect changes on the Geocaching website
2 parents ab6e1c2 + a662741 commit ce627ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycaching/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ def _get_log_counts_from_cache_details(soup):
974974
:param bs4.BeautifulSoup soup: Parsed html document of the cache details page.
975975
"""
976976
lbl_find_counts = soup.find("span", {"id": "ctl00_ContentBody_lblFindCounts"})
977-
log_totals = lbl_find_counts.find("ul", "LogTotals")
977+
log_totals = lbl_find_counts.find("ul", {"aria-labelledby": "LoggedVisits"})
978978

979979
# Text gives numbers separated by a lot of spaces, splitting retrieves the numbers.
980980
# The values might contain thousand separators, which we have to remove before converting

0 commit comments

Comments
 (0)