ThreeGate/fetch/crossref
welsberr 3e6cb9e9b6 Added fetch/crossref stub and Makefile target 2026-02-09 15:55:25 -05:00
..
README.md Added fetch/crossref stub and Makefile target 2026-02-09 15:55:25 -05:00
fetch_by_doi.py Added fetch/crossref stub and Makefile target 2026-02-09 15:55:25 -05:00

README.md

Crossref Fetcher (DOI → Research Packet)

This fetcher retrieves bibliographic metadata for a DOI from Crossref and emits a schema-conforming Research Packet.

Security Constraints

  • Only connects to: https://api.crossref.org
  • Uses proxy env vars (https_proxy, http_proxy) via urllib
  • Produces metadata-only packets (no full text)
  • Output must pass validate_research_packet.py before CORE consumes it

Usage

From repo root:

chmod +x fetch/crossref/fetch_by_doi.py
export PYTHONPATH="$(pwd)"

# Recommend setting CONTACT_EMAIL for Crossref etiquette
export CONTACT_EMAIL="you@example.org"

python3 fetch/crossref/fetch_by_doi.py \
  --doi 10.5555/12345678 \
  --out infra/volumes/handoff/inbound-to-core/RP-crossref-doi.md