← Về thư mục
skills/paper-lookup/scripts/paginate.py
- Page · class · L53-L61 — class Page
- Api · class · L65-L72 — class Api
- fetch · function · L75-L88 — def fetch(url: str, *, headers: dict[str, str] | None = None) -> Any
- _rxiv_url · function · L98-L104 — def _rxiv_url(server: str) -> Callable[[str, Any, int], str]
- build · function · L99-L102 — def build(query: str, state: Any, _limit: int) -> str
- _rxiv_parse · function · L107-L146 — def _rxiv_parse(payload: Any, state: Any) -> Page
- _europepmc_url · function · L156-L164 — def _europepmc_url(query: str, state: Any, limit: int) -> str
- _europepmc_parse · function · L167-L192 — def _europepmc_parse(payload: Any, state: Any) -> Page
- _openalex_url · function · L198-L209 — def _openalex_url(query: str, state: Any, limit: int) -> str: #
query is a raw parameter string, e.g. search=crispr or # filter=publication_year:2024, so both forms work without a second flag.
- _openalex_parse · function · L212-L228 — def _openalex_parse(payload: Any, _state: Any) -> Page
- _crossref_url · function · L234-L239 — def _crossref_url(query: str, state: Any, limit: int) -> str
- _crossref_parse · function · L242-L257 — def _crossref_parse(payload: Any, _state: Any) -> Page
- walk · function · L307-L373 — def walk( api: Api, query: str, *, page_size: int, max_records: int, max_calls: int, verbose: bool, ) -> tuple[list[Any], Reconciliation, list[str]]
- build_parser · function · L376-L409 — def build_parser() -> argparse.ArgumentParser
- main · function · L412-L486 — def main(argv: list[str] | None = None) -> int