()
| 410 | |
| 411 | |
| 412 | def 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 | |
| 420 | def parse_arxiv_xml(xml_content: str) -> list[dict[str, Any]]: |