Skip to content

Commit 6961093

Browse files
authored
Remove non-existing classes to reflect website changes (#244)
1 parent f36cc3a commit 6961093

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pycaching/cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def load(self):
802802
pm_only_warning = root.find("p", "Warning NoBottomSpacing")
803803
self.pm_only = pm_only_warning and ("Premium Member Only" in pm_only_warning.text) or False
804804

805-
attributes_widget, inventory_widget, *_ = root.find_all("div", "CacheDetailNavigationWidget")
805+
attributes_widget, inventory_widget, *_ = root.find_all("div")
806806

807807
hidden = cache_details.find("div", "minorCacheDetails").find_all("div")[1].text
808808
self.hidden = parse_date(hidden.split(":")[-1])
@@ -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", {"aria-labelledby": "LoggedVisits"})
977+
log_totals = lbl_find_counts.find("ul")
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)