[oracle-jdk] Stop using javascript for fetching the page
It's not needed, and started failing : https://github.com/endoflife-date/release-data/actions/runs/16085523550.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from bs4 import BeautifulSoup
|
||||
from common import dates, http, releasedata
|
||||
|
||||
"""Fetch Java versions from https://www.java.com/releases/.
|
||||
@@ -7,8 +6,7 @@ This script is using requests-html because the page needs JavaScript to render c
|
||||
|
||||
for config in releasedata.list_configs_from_argv():
|
||||
with releasedata.ProductData(config.product) as product_data:
|
||||
content = http.fetch_javascript_url(config.url, wait_until='networkidle')
|
||||
soup = BeautifulSoup(content, 'html.parser')
|
||||
soup = http.fetch_html(config.url)
|
||||
|
||||
previous_date = None
|
||||
for row in soup.select('#released tr'):
|
||||
|
||||
Reference in New Issue
Block a user