[ibm-aix] Use fetch_javascript_url instead of fetch_html

This commit is contained in:
Marc Wrobel
2025-10-28 22:26:11 +01:00
parent 39c5d5ce5f
commit da4c1d6e29

View File

@@ -1,11 +1,12 @@
from bs4 import BeautifulSoup
from common import dates, http
from common.releasedata import ProductData, config_from_argv
config = config_from_argv()
with ProductData(config.product) as product_data:
html = http.fetch_html(config.url)
html = BeautifulSoup(http.fetch_javascript_url(config.url, wait_for="table"), "html5lib")
for release_table in html.find("div", class_="ibm-container-body").find_all("table", class_="ibm-data-table ibm-grid"):
for release_table in html.find_all("table"):
for row in release_table.find_all("tr")[1:]: # for all rows except the header
cells = row.find_all("td")
version = cells[0].text.strip("AIX ").replace(' TL', '.')