The packages numpy
and crossref-commons
are needed for the script.
$ pip install numpy crossref-commons
Copy doi2b.py into the folder with the *.bib file.
$ python doi2b.py 10.1103/PhysRevMaterials.4.024412
An entry was added to the *.bib file with the shortest file name. Optional: Specify the .bib file name.
$ python doi2b.py file_name.bib 10.1103/PhysRevMaterials.4.024412
Linus Kautzsch, UC Santa Barbara, 2020