From 4bc535aabb9686bbf219270a18c8657ba88227dc Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Sun, 28 Jan 2024 23:07:49 +0100 Subject: [PATCH] =?UTF-8?q?[graalvm]=C2=A0Fix=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tabled moved from the 2nd to the 3rd position. Updating the script so it is more resilient. --- src/graalvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graalvm.py b/src/graalvm.py index 6b650091..1870abbc 100644 --- a/src/graalvm.py +++ b/src/graalvm.py @@ -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())