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

Function semantic_scholar_headers

scripts/common.py:412–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410
411
412def semantic_scholar_headers() -> dict[str, str]:
413 headers = {"User-Agent": DEFAULT_USER_AGENT}
414 api_key = env_config_value("DEEPPAPERNOTE_SEMANTIC_SCHOLAR_API_KEY", "SEMANTIC_SCHOLAR_API_KEY")
415 if api_key:
416 headers["x-api-key"] = api_key
417 return headers
418
419
420def parse_arxiv_xml(xml_content: str) -> list[dict[str, Any]]:

Calls 1

env_config_valueFunction · 0.85