These scripts allow searching for BibTeX entries on Google Scholar and DBLP and conveniently adding results to .bib files (at least the elisp code does).
bibfetch.pl
needs a few Perl modules, namely:
URI
andURI::Escape
(available inliburi-perl
for Debian/Ubuntu users)Web::Scraper
(libweb-scraper-perl
)WWW::Mechanize
(libwww-mechanize-perl
)String::Random
(libstring-random-perl
)Pod::Usage
(Included withperl-modules
)Getopt::Long
(libgetargs-long-perl
)List::Util
(Inperl-base
)
bibfetch.el
requires Emacs (duh), and bibtex.el which should be included
with any non-ancient version of emacs.
See bibfetch.pl -h
for usage information about the command line script.
For emacs integration, it should be sufficient to execute (require
'bibfetch)
somewhere in your emacs configuration and calling the
bibfetch
function afterwards. Note that this requires that
bibfetch.pl
is in your $PATH
, otherwise the variable
bibfetch-script
needs to be adjusted accordingly.
Calling bibfetch
will ask for a query term (which can be anything
Google Scholar accepts), and then display a buffer with the
results. In that buffer, j/k and the arrow keys can be used to
navigate through the results. y copies the currently selected entry in
the killring, and <return> inserts the article in the buffer in which
bibfetch was called (which makes it useful to call the function from
the .bib file you wish to add to). Additionally, keybindings from
bibtex-mode are also available, and its settings, such as highlighting
are used.
Currently, these scripts only support Google Scholar and DBLP, but offering some alternatives would be nice.
This is free software, licensed under the 3-clause BSD license. See LICENSE for details.