MCPcopy Create free account
hub / github.com/0xMarcio/cve / fetch_json

Function fetch_json

scripts/utils.py:43–46  ·  view source on GitHub ↗
(url: str, *, timeout: int = 30, headers: Optional[Dict[str, str]] = None)

Source from the content-addressed store, hash-verified

41
42
43def fetch_json(url: str, *, timeout: int = 30, headers: Optional[Dict[str, str]] = None):
44 response = requests.get(url, timeout=timeout, headers=headers or {})
45 response.raise_for_status()
46 return response.json()
47
48
49def today_str() -> str:

Callers 1

fetch_kevFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected