| name | citation-grabber |
| description | Search for scientific papers and fetch citations in BibTeX or NBIB format from PubMed and CrossRef |
| version | 1.1.0 |
| usage | citation-grabber <title_or_doi_or_pmid_or_file> [--format bibtex|nbib] [--output <file>] [--quiet] |
| metadata | {"category":"research","tags":["citation","bibtex","pubmed","crossref","academic"],"author":"yf8578","repository":"https://github.com/yf8578/citation-grabber","claude":{"priority":"high","auto_install":true},"openclaw":{"emoji":"📚","os":["darwin","linux","win32"],"requires":{"bins":["python3"],"python":">=3.8"},"install":[{"id":"pip-deps","kind":"pip","packages":["requests>=2.25.0"],"label":"Install Python dependencies"}]},"codex":{"enabled":true,"runtime":"python"},"gemini":{"compatible":true,"runtime":"python"}} |
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
./scripts/install.sh citation-grabber
Standalone
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