← Về thư mục
scripts/semantic_scholar_client.py
- _require_api_url · function · L65-L68 — def _require_api_url(url: str) -> None
- SemanticScholarClient · class · L71-L291 — class SemanticScholarClient
- init · method · L84-L106 — def init( self, api_key: str | None = None, sleep: Any = time.sleep, clock: Any = time.monotonic, min_interval_seconds: float | None = None, ) -> None
- reset_outage_latch · method · L108-L116 — def reset_outage_latch(self) -> None
- lookup · method · L118-L158 — def lookup(self, entry: Mapping[str, Any]) -> Mapping[str, Any]
- _request · method · L160-L242 — def _request(self, path: str) -> dict[str, Any]: # Latch short-circuit (#115 R5-3): if a prior URLError marked # the network dead, fail fast without trying again.
- _lookup_by_doi · method · L244-L255 — def _lookup_by_doi(self, doi: str, expected_title: str) -> dict[str, Any]
- _lookup_by_title · method · L257-L291 — def _lookup_by_title(self, title: str, year: int | None) -> dict[str, Any]