项目作者: sckott

项目描述 :
pull dois out of pdfs > content negotation > bib file
高级语言: Ruby
项目地址: git://github.com/sckott/extcite.git
创建时间: 2016-06-07T14:48:19Z
项目社区:https://github.com/sckott/extcite

开源协议:MIT License

下载


extcite

gem version
Ruby
codecov.io

extcite gets DOIS and generates citations for papers

Install

Release version

  1. gem install extcite

Development version

  1. git clone git@github.com:sckott/extcite.git
  2. cd extcite
  3. rake install

if rake install fails, try sudo rake install. If that fails, open an issue with what rake install --trace gives you

Examples

Within Ruby

  1. require 'extcite'

A single paper

  1. require 'net/http'
  2. File.write("foo.pdf", Net::HTTP.get(URI.parse("https://scottchamberlain.info/pdfs/GuoEtal2015PlosOne.pdf")))
  3. Extcite.extract(path: 'foo.pdf')

bib citation is written to a file given in file param

Many papers at once

  1. Dir.mkdir('bar')
  2. File.write("bar/foo1.pdf", Net::HTTP.get(URI.parse("https://scottchamberlain.info/pdfs/Chamberlain&Szocs2013F1000Research.pdf")))
  3. File.write("bar/foo2.pdf", Net::HTTP.get(URI.parse("https://scottchamberlain.info/pdfs/GuoEtal2015PlosOne.pdf")))
  4. Extcite.extract(path: 'bar')

On the CLI

All pdfs in the current directory:

  1. extcite extract .

Single paper

  1. extcite extract foo.pdf