paper_firehose.core.apis.crossref_client¶
Crossref API client for fetching paper abstracts.
Crossref is a major DOI registration agency with comprehensive metadata including abstracts for academic publications.
Functions
|
Return the plain-text abstract for DOI or None if not available. |
|
Best-effort abstract lookup by title when DOI is missing or returns no abstract. |
- paper_firehose.core.apis.crossref_client.get_crossref_abstract(doi, *, mailto, max_retries=3, session=None)[source]¶
Return the plain-text abstract for DOI or None if not available.
Implements exponential backoff on 429/5xx and honors Retry-After when present. Also sends Crossref the mailto parameter.
- Parameters:
- Return type:
- Returns:
Plain-text abstract or None if not available
- paper_firehose.core.apis.crossref_client.search_crossref_abstract_by_title(title, *, mailto, max_retries=2, session=None)[source]¶
Best-effort abstract lookup by title when DOI is missing or returns no abstract.
Uses Crossref’s works search endpoint with a bibliographic query. Returns the first item’s abstract if available.
- Parameters:
- Return type:
- Returns:
Plain-text abstract or None if not available