Create and revise bibtex entries from DBLP.
- uses pybtex
- inspired from dblp-python
The package can be installed from PyPI with:
pip install bibtex-dblp
Manual installation is possible by cloning this repository and building the Python package:
python setup.py develop
All relevant scripts can be found in the bin
directory.
Every script provides information about the expected input and additional arguments via --help
.
The script bin/import_dblp.py
searches for a new publication on DBLP and adds the corresponding bibtex entry to the bibliography.
Usage:
import_dblp [--query QUERY] [--bib BIBTEX] [--format FORMAT]
If the argument --query
is not given, the search keywords can be given directly in the terminal.
The script then queries the DBLP API and displays the possible matches.
The correct publication number can be selected in the terminal (or 0
for abort).
The bibtex entry of the selected publication is either appended to the given bibliography (if --bib
is provided) or displayed on the terminal.
The script bin/convert_dblp.py
converts the complete bibliography between different DBLP formats.
Usage:
convert_dblp INPUT_BIB [--out OUTPUT_BIB] [--format FORMAT]
All bibtex entries with either the field biburl
given or a bibtex name corresponding to a DBLP id are automatically converted into the desired format.
All other entries are left unchanged.
The script bin/update_from_dblp.py
updates the entries in an existing bibliography by looking up the information from DBLP.
Usage:
update_from_dblp INPUT_BIB [--out OUTPUT_BIB] [--format FORMAT]
For each bibtex entry without a DBLP id, the scripts searches DBLP for a possible match. The user can select the correct entry from a list of possible matches and the bibliography is updated accordingly. Bibtex entries which already have a DBLP id are left unchanged.
The following bibtex formats from DBLP are currently supported:
condensed
: Condensed format where e.g. journals and conferences are abbreviated. Default value.standard
: Default format from DBLP.crossref
: Extensive format in which conferences have their own bibtex entrycondensed_doi
: Corresponds tocondensed
but additionally includes the DOI