Created
December 13, 2023 17:13
-
-
Save moble/633245c514466662e69c4a5641eefa5f to your computer and use it in GitHub Desktop.
doi2bibtex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This bash/zsh function queries for the input DOI's bibtex entry. When the DOI points | |
# to a journal article, this usually resolves to the journal's own bibtex output. | |
doi2bibtex () { | |
curl -fsSLH "Accept: application/x-bibtex" "https://doi.org/$1" | sed -e 's|%2F|/|g' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment