PubMed Search
Search PubMed via NCBI Entrez and print structured results for the top matches.
Bundled Script
Run search_pubmed.py in this directory:
python search_pubmed.py --query "your search terms here"Prerequisites
pip install biopythonSet Entrez.email in the script (or override via env) to a valid contact email — NCBI requires this for Entrez API access.
Behavior
- Returns up to 3 results by default (
MAX_RESULTSin the script). - Prints title, authors, journal, year, DOI, PubMed URL, and abstract for each paper.
- Uses structured logging with emoji prefixes.
When to Use
- Quick literature scans during research or writing tasks
- Verifying paper metadata before citing
- Gathering abstracts for summarization or critique workflows