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
# From the skills collection repository
./scripts/install.sh citation-grabber
Standalone
# 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:
python3 citation.py "Attention Is All You Need"
By DOI:
python3 citation.py "10.1038/nature14539"
By PubMed ID:
python3 citation.py "12345678"
Output Formats
BibTeX (Default):
python3 citation.py "Deep Learning" --format bibtex
NBIB (PubMed Format for EndNote/Zotero):
python3 citation.py "COVID-19 vaccine" --format nbib
Batch Processing
Create a file papers.txt with paper titles/DOIs/PMIDs (one per line), then:
python3 citation.py papers.txt --output references.bib
Quiet Mode
Suppress progress messages:
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