Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.86 KB

README.org

File metadata and controls

49 lines (36 loc) · 1.86 KB

bibfetch.{pl,el}

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).

Requirements

bibfetch.pl needs a few Perl modules, namely:

  • URI and URI::Escape (available in liburi-perl for Debian/Ubuntu users)
  • Web::Scraper (libweb-scraper-perl)
  • WWW::Mechanize (libwww-mechanize-perl)
  • String::Random (libstring-random-perl)
  • Pod::Usage (Included with perl-modules)
  • Getopt::Long (libgetargs-long-perl)
  • List::Util (In perl-base)

bibfetch.el requires Emacs (duh), and bibtex.el which should be included with any non-ancient version of emacs.

Usage

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.

Shortcomings

Currently, these scripts only support Google Scholar and DBLP, but offering some alternatives would be nice.

Copyright / License

This is free software, licensed under the 3-clause BSD license. See LICENSE for details.