[apple] Fix slight html change

This commit is contained in:
Nemo
2023-08-11 11:26:59 +05:30
committed by Nemo
parent 592a057cda
commit 11a4f2109f

View File

@@ -74,6 +74,8 @@ def parse(url, releases):
response = endoflife.fetch_url(url)
soup = BeautifulSoup(response, features="html5lib")
table = soup.find(id="tableWraper")
if not table:
table = soup.find('table', class_="gb-table")
for tr in reversed(table.findAll("tr")[1:]):
td_list = tr.findAll("td")
version_text = td_list[0].get_text().strip()