CrossRefOrcid.fetch_orcid_works¶
- CrossRefOrcid.fetch_orcid_works(orcid_id, work_types=None, recent_years=2)[source]¶
Fetch recent works from ORCID and enrich with metadata from DOI.
- Parameters:
orcid_id (str) – ORCID iD of the researcher.
work_types (str | list | None) – Work type(s) to include (e.g. ‘journal-article’ or [‘book’, ‘conference-paper’]); defaults to
None
.recent_years (int) – Number of recent years to include; defaults to
2
.
- Returns:
A list of extracted reference dictionaries.
- Return type:
list[dict]
Examples:
>>> from pyhelpers.ops import CrossRefOrcid >>> co = CrossRefOrcid() >>> orcid_id = '0000-0002-6502-9934' >>> ref_data = co.fetch_orcid_works(orcid_id) # Past two years >>> type(ref_data) list >>> # ref_data = co.fetch_orcid_works(orcid_id, recent_years=5) # Past five years >>> # for ref_dat in ref_data: ... # print(ref_dat)