[nvidia-driver] Add automation script (#476)

Closes #368.
This commit is contained in:
Marc Wrobel
2025-07-27 11:51:12 +02:00
parent 8052090309
commit 3b8adee264
2 changed files with 45 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ def fetch_html(url: str, data: any = None, user_agent: str = ENDOFLIFE_BOT_USER_
return BeautifulSoup(response.text, features=features)
def fetch_json(url: str, data: any = None, user_agent: str = ENDOFLIFE_BOT_USER_AGENT,
max_retries: int = 10, backoff_factor: float = 0.5, timeout: int = 30) -> Document:
max_retries: int = 10, backoff_factor: float = 0.5, timeout: int = 30) -> dict:
response = fetch_url(url, data, user_agent, max_retries, backoff_factor, timeout)
return response.json()