MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / http_get_json

Function http_get_json

scripts/common.py:402–403  ·  view source on GitHub ↗
(url: str, *, timeout: int = 30, headers: dict[str, str] | None = None)

Source from the content-addressed store, hash-verified

400
401
402def http_get_json(url: str, *, timeout: int = 30, headers: dict[str, str] | None = None) -> dict[str, Any]:
403 return json.loads(http_get_text(url, timeout=timeout, headers=headers))
404
405
406def http_get_bytes(url: str, *, timeout: int = 60, headers: dict[str, str] | None = None) -> bytes:

Callers 5

fetch_crossref_by_doiFunction · 0.85
search_crossref_by_titleFunction · 0.85
search_semantic_scholarFunction · 0.85
fetch_openalex_by_doiFunction · 0.85
search_openalex_by_titleFunction · 0.85

Calls 1

http_get_textFunction · 0.85

Tested by

no test coverage detected