Citation Grabber
Instantly fetch scientific paper citations from the command line.
Features
- •🔍 Search by title, DOI, or PubMed ID
- •📚 Supports BibTeX and NBIB output formats
- •🔄 Dual source: PubMed + CrossRef
- •📦 Batch processing from text files
- •✨ Smart fallback between data sources
Installation
Via Skills Collection
bash
# From the skills collection repository ./scripts/install.sh citation-grabber
Standalone
bash
# Clone the standalone repository git clone https://github.com/yf8578/citation-grabber.git cd citation-grabber pip install -r requirements.txt
Usage
Single Paper
By Title:
bash
python3 citation.py "Attention Is All You Need"
By DOI:
bash
python3 citation.py "10.1038/nature14539"
By PubMed ID:
bash
python3 citation.py "12345678"
Output Formats
BibTeX (Default):
bash
python3 citation.py "Deep Learning" --format bibtex
NBIB (PubMed Format for EndNote/Zotero):
bash
python3 citation.py "COVID-19 vaccine" --format nbib
Batch Processing
Create a file papers.txt with paper titles/DOIs/PMIDs (one per line), then:
bash
python3 citation.py papers.txt --output references.bib
Quiet Mode
Suppress progress messages:
bash
python3 citation.py "Paper Title" --quiet
Requirements
- •Python 3.8+
- •requests library (auto-installed)
- •Internet connection
Links
- •Full Repository: https://github.com/yf8578/citation-grabber
- •Documentation: See repository README
- •License: MIT