Skip to content

vicky-sunshine/doi2bibtex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doi2bibtex

Gem Version Build Status License: MIT

Give DOI, get corresponding BibTeX!

Usage

Install it with the following command:

$ gem install doi2bibtex

To get the BibTex format of certain DOI

$ doi2bibtex get 10.1109/JPROC.2014.2371999
@article{Kreutz_2015,
	doi = {10.1109/jproc.2014.2371999},
	url = {https://doi.org/10.1109%2Fjproc.2014.2371999},
	year = 2015,
	month = {jan},
	publisher = {Institute of Electrical and Electronics Engineers ({IEEE})},
	volume = {103},
	number = {1},
	pages = {14--76},
	author = {Diego Kreutz and Fernando M. V. Ramos and Paulo Esteves Verissimo and Christian Esteve Rothenberg and Siamak Azodolmolky and Steve Uhlig},
	title = {Software-Defined Networking: A Comprehensive Survey},
	journal = {Proceedings of the {IEEE}}
}

Development

Use it from your Ruby code:

require 'doi2bibtex'
DOI = "10.1109/JPROC.2014.2371999"
bib = Doi2bibtex::Doi2bibtex.new(doi)

bib.url
# "https://doi.org/10.1109/jproc.2014.2371999"

bib.title
# "Software-Defined Networking: A Comprehensive Survey"

bib.author
# "Diego Kreutz and Fernando M. V. Ramos and Paulo Esteves Verissimo and Christian Esteve Rothenberg and Siamak Azodolmolky and Steve Uhlig"

bib.book_title
# "Proceedings of the IEEE"

bib.publisher
# "Institute of Electrical and Electronics Engineers (IEEE)"

bib.volume
# 103

bib.issue
# 1

bib.pages
# "14-76"

bib.year
# 2015

bib.month
# nil

bib.bibtex
# "@article{Kreutz_2015,\n\tdoi = {10.1109/jproc.2014.2371999},\n\turl = {https://doi.org/10.1109%2Fjproc.2014.2371999},\n\tyear = 2015,\n\tmonth = {jan},\n\tpublisher = {Institute of Electrical and Electronics Engineers ({IEEE})},\n\tvolume = {103},\n\tnumber = {1},\n\tpages = {14--76},\n\tauthor = {Diego Kreutz and Fernando M. V. Ramos and Paulo Esteves Verissimo and Christian Esteve Rothenberg and Siamak Azodolmolky and Steve Uhlig},\n\ttitle = {Software-Defined Networking: A Comprehensive Survey},\n\tjournal = {Proceedings of the {IEEE}}\n}"

bib.to_h
# {:doi=>"10.1109/JPROC.2014.2371999",
#  :url=>"https://doi.org/10.1109/jproc.2014.2371999",
#  :author=>"Diego Kreutz and Fernando M. V. Ramos and Paulo Esteves Verissimo and Christian Esteve Rothenberg and Siamak Azodolmolky and Steve Uhlig",
#  :title=>"Software-Defined Networking: A Comprehensive Survey",
#  :book_title=>"Proceedings of the IEEE",
#  :publisher=>"Institute of Electrical and Electronics Engineers (IEEE)",
#  :volume=>103,
#  :issue=>1,
#  :pages=>"14-76",
#  :year=>2015,
#  :month=>nil
# }

bib.to_s # alias to `.bibtex`
# "@article{Kreutz_2015,\n\tdoi = {10.1109/jproc.2014.2371999},\n\turl = {https://doi.org/10.1109%2Fjproc.2014.2371999},\n\tyear = 2015,\n\tmonth = {jan},\n\tpublisher = {Institute of Electrical and Electronics Engineers ({IEEE})},\n\tvolume = {103},\n\tnumber = {1},\n\tpages = {14--76},\n\tauthor = {Diego Kreutz and Fernando M. V. Ramos and Paulo Esteves Verissimo and Christian Esteve Rothenberg and Siamak Azodolmolky and Steve Uhlig},\n\ttitle = {Software-Defined Networking: A Comprehensive Survey},\n\tjournal = {Proceedings of the {IEEE}}\n}"
```

About

Give DOI, get corresponding BibTeX!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages