https://github.com/sckott/extcite
pull dois out of pdfs > content negotation > bib file
https://github.com/sckott/extcite
bib citations doi extract pdf
Last synced: 3 months ago
JSON representation
pull dois out of pdfs > content negotation > bib file
- Host: GitHub
- URL: https://github.com/sckott/extcite
- Owner: sckott
- License: mit
- Created: 2016-06-07T14:48:19.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-06-23T16:54:08.000Z (over 2 years ago)
- Last Synced: 2025-07-14T03:23:11.165Z (3 months ago)
- Topics: bib, citations, doi, extract, pdf
- Language: Ruby
- Homepage:
- Size: 1.46 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
extcite
=======[](https://rubygems.org/gems/extcite)

[](http://codecov.io/github/sckott/extcite?branch=master)__`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
```ruby
require 'extcite'
```A single paper
```ruby
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
```ruby
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:
```shell
extcite extract .
```Single paper
```shell
extcite extract foo.pdf
```[changelog]: https://github.com/sckott/extcite/blob/master/CHANGELOG.md