MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / fetch_and_save

Function fetch_and_save

scripts/update_cdp.py:53–58  ·  view source on GitHub ↗
(url, file_path)

Source from the content-addressed store, hash-verified

51
52
53def fetch_and_save(url, file_path):
54 response = github_get(url)
55 if response.status != 200:
56 raise ValueError(f"Fetch failed (HTTP {response.status}): {url}")
57 with open(file_path, "wb") as file:
58 file.write(response.data)
59
60
61def new_chrome(chrome_milestone):

Callers 1

add_pdlsFunction · 0.85

Calls 2

github_getFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected