(url: str)
| 936 | |
| 937 | def _format_plain_url(url: str) -> str: |
| 938 | clean_url = _clean_text(url) |
| 939 | if clean_url.startswith("http://") or clean_url.startswith("https://"): |
| 940 | return clean_url |
| 941 | return clean_url or "暂无" |
| 942 | |
| 943 | |
| 944 | def _get_first_url(paper: Dict[str, Any], *keys: str) -> str: |
| 945 | metadata = paper.get("metadata") |
no test coverage detected