Skip to content

Simple command line interface tool for generating BibTex entries from DOIs. Written in Rust and based on the doi2bib crate.

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-Apache
Notifications You must be signed in to change notification settings

nathansam/bibget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bibget

CI crates.io dependency status MIT

Command line interface tool for generating BibTex entries from DOIs. Written in Rust and based on the doi2bib crate.

Installation

Pre-compiled binaries for MacOS and Linux are available from the releases page and do not require Rust to be installed.

bibget can be installed from source using cargo. The most stable version is hosted on crates.io.

# release version from crates.io
cargo install bibget 

You can also install from GitHub if you want access to the latest pre-release (likely with newer dependencies) or development (more experimental) builds.

# pre-release version
cargo install --git https://github.com/nathansam/bibget.git bibget 
# development version 
cargo install --git https://github.com/nathansam/bibget.git --branch dev bibget 

Usage

bibget is a command line tool that takes a DOI as an argument and returns output in BibTex format. Multiple DOIs can be passed via whitespace separation.

bibget 10.1002/sim.1186 10.1007/978-3-319-19425-7
 @article{Higgins_2002,
   title = {Quantifying heterogeneity in a meta‐analysis},
   volume = {21},
   ISSN = {1097-0258},
   url = {http://dx.doi.org/10.1002/sim.1186},
   DOI = {10.1002/sim.1186},
   number = {11},
   journal = {Statistics in Medicine},
   publisher = {Wiley},
   author = {Higgins, Julian P. T. and Thompson, Simon G.},
   year = {2002},
   month = may,
   pages = {1539–1558}
}

 @book{Harrell__2015,
  _2015,
   title = {Regression Modeling Strategies: With Applications to Linear Models, Logistic and Ordinal Regression, and Survival Analysis},
   ISBN = {9783319194257},
   ISSN = {2197-568X},
   url = {http://dx.doi.org/10.1007/978-3-319-19425-7},
   DOI = {10.1007/978-3-319-19425-7},
   journal = {Springer Series in Statistics},
   publisher = {Springer International Publishing},
   author = {Harrell , Frank E.},
   year = {2015}
}

bibget supports an optional -f/--file flag for writing the BibTex to file. If the specified file does not already exist, it will be created first. Entries will be appended to the end of existing files instead.

> bibget -f test.bib 10.1002/sim.1186

About

Simple command line interface tool for generating BibTex entries from DOIs. Written in Rust and based on the doi2bib crate.

Topics

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-Apache

Stars

Watchers

Forks

Packages

No packages published

Languages