A command-line-based program to fetch BibTeX entries using Crossref.
- Ensure you have Python 3 installed on your machine. You can download it from here.
- Clone this repository to your local machine.
- Copy the
get_bibtex.py
file to some directory in yourPATH
.
This program requires the following third-party Python packages:
- requests
- Optional: pyperclip
You can install these packages using pip:
pip install requests pyperclip
You can get a list of all the command-line arguments by running the script with the -h
or --help
option:
get_bibtex.py -h
Search for works by author 'John Doe' and print the top 20 matches:
get_bibtex.py -a 'John Doe'
Specify some keywords from the title of the paper to search for:
get_bibtex.py -a 'John Doe' -k 'machine learning'
Change the number of matches to show (for example, 10):
get_bibtex.py -a 'John Doe' -k 'machine learning' -m 10
Use the -c
argument to save the BibTeX entry to the clipboard:
get_bibtex.py -a 'John Doe' -k 'machine learning' -m 10 -c
Already know which match you want (e.g. the second)? Select that match and only get the BibTeX entry:
get_bibtex.py -a 'John Doe' -k 'machine learning' -m 10 -c -s 2