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

Function fetch_crossref_by_doi

scripts/common.py:544–553  ·  view source on GitHub ↗
(doi: str)

Source from the content-addressed store, hash-verified

542
543
544def fetch_crossref_by_doi(doi: str) -> dict[str, Any] | None:
545 url = f"{CROSSREF_WORKS_URL}/{urllib.parse.quote(doi)}"
546 try:
547 data = http_get_json(url, headers={"User-Agent": DEFAULT_USER_AGENT})
548 except Exception:
549 return None
550 message = data.get("message") or {}
551 if not isinstance(message, dict):
552 return None
553 return normalize_crossref_work(message)
554
555
556def search_crossref_by_title(title: str, *, limit: int = 5) -> list[dict[str, Any]]:

Callers 2

resolve_referenceFunction · 0.85
enrich_metadataFunction · 0.85

Calls 2

http_get_jsonFunction · 0.85
normalize_crossref_workFunction · 0.85

Tested by

no test coverage detected