[graalvm] Fix script

Tabled moved from the 2nd to the 3rd position. Updating the script so it is more resilient.
This commit is contained in:
Marc Wrobel
2024-01-28 23:07:49 +01:00
committed by GitHub
parent 5bb207d284
commit 4bc535aabb

View File

@@ -5,7 +5,7 @@ product = releasedata.Product("graalvm")
release_calendar = http.fetch_url("https://www.graalvm.org/release-calendar/")
release_calendar_soup = BeautifulSoup(release_calendar.text, features="html5lib")
for tr in release_calendar_soup.findAll("table")[1].find("tbody").findAll("tr"):
for tr in release_calendar_soup.find("h2", id="previous-releases").find_next("table").find("tbody").findAll("tr"):
cells = tr.findAll("td")
date = dates.parse_date(cells[0].get_text())