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

Function github_get

scripts/update_cdp.py:46–50  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

44
45
46def github_get(url):
47 headers = {"Accept": "application/vnd.github.raw+json"}
48 if "GITHUB_TOKEN" in os.environ:
49 headers["Authorization"] = f"Bearer {os.environ['GITHUB_TOKEN']}"
50 return http.request("GET", url, headers=headers)
51
52
53def fetch_and_save(url, file_path):

Callers 3

fetch_and_saveFunction · 0.85
flatten_browser_pdlFunction · 0.85
add_pdlsFunction · 0.85

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected