Project

extcite

0.0
No release in over 3 years
Low commit activity in last 3 years
Gets DOIS and generates citations for your papers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0, >= 2.0.2
~> 0.1.16
~> 13.0, >= 13.0.1
~> 0.18.0
~> 3.3, >= 3.3.4

Runtime

~> 5.0, >= 5.0.1
>= 0.15, < 1.1
>= 0.12.2, < 1.1.0
>= 2.15, < 4.0
~> 1.19
>= 0.5.2, < 0.7.0
>= 0.20.3, < 1.1.0
~> 0.1.0
 Project Readme

extcite

gem version Ruby codecov.io

extcite gets DOIS and generates citations for papers

Install

Release version

gem install extcite

Development version

git clone git@github.com:sckott/extcite.git
cd extcite
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

require 'extcite'

A single paper

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

bib citation is written to a file given in file param

Many papers at once

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

On the CLI

All pdfs in the current directory:

extcite extract .

Single paper

extcite extract foo.pdf