{"id":15555303,"url":"https://github.com/sckott/extcite","last_synced_at":"2025-07-15T20:45:16.838Z","repository":{"id":9051654,"uuid":"60621486","full_name":"sckott/extcite","owner":"sckott","description":"pull dois out of pdfs \u003e content negotation \u003e bib file","archived":false,"fork":false,"pushed_at":"2023-06-23T16:54:08.000Z","size":1532,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T03:23:11.165Z","etag":null,"topics":["bib","citations","doi","extract","pdf"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sckott.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-07T14:48:19.000Z","updated_at":"2022-04-16T16:20:00.000Z","dependencies_parsed_at":"2025-04-17T16:00:57.888Z","dependency_job_id":null,"html_url":"https://github.com/sckott/extcite","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sckott/extcite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fextcite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fextcite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fextcite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fextcite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sckott","download_url":"https://codeload.github.com/sckott/extcite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fextcite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265458338,"owners_count":23769111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bib","citations","doi","extract","pdf"],"created_at":"2024-10-02T15:08:10.376Z","updated_at":"2025-07-15T20:45:16.752Z","avatar_url":"https://github.com/sckott.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"extcite\n=======\n\n[![gem version](https://img.shields.io/gem/v/extcite.svg)](https://rubygems.org/gems/extcite)\n![Ruby](https://github.com/sckott/extcite/workflows/Ruby/badge.svg)\n[![codecov.io](http://codecov.io/github/sckott/extcite/coverage.svg?branch=master)](http://codecov.io/github/sckott/extcite?branch=master)\n\n__`extcite` gets DOIS and generates citations for papers__\n\n## Install\n\n### Release version\n\n```\ngem install extcite\n```\n\n### Development version\n\n```\ngit clone git@github.com:sckott/extcite.git\ncd extcite\nrake install\n```\n\n\u003e if `rake install` fails, try `sudo rake install`. If that fails, open an issue with what `rake install --trace` gives you\n\n## Examples\n\n### Within Ruby\n\n```ruby\nrequire 'extcite'\n```\n\nA single paper\n\n```ruby\nrequire 'net/http'\nFile.write(\"foo.pdf\", Net::HTTP.get(URI.parse(\"https://scottchamberlain.info/pdfs/GuoEtal2015PlosOne.pdf\")))\nExtcite.extract(path: 'foo.pdf')\n```\n\nbib citation is written to a file given in `file` param\n\nMany papers at once\n\n```ruby\nDir.mkdir('bar')\nFile.write(\"bar/foo1.pdf\", Net::HTTP.get(URI.parse(\"https://scottchamberlain.info/pdfs/Chamberlain\u0026Szocs2013F1000Research.pdf\")))\nFile.write(\"bar/foo2.pdf\", Net::HTTP.get(URI.parse(\"https://scottchamberlain.info/pdfs/GuoEtal2015PlosOne.pdf\")))\nExtcite.extract(path: 'bar')\n```\n\n### On the CLI\n\nAll pdfs in the current directory:\n\n```shell\nextcite extract .\n```\n\nSingle paper\n\n```shell\nextcite extract foo.pdf\n```\n\n[changelog]: https://github.com/sckott/extcite/blob/master/CHANGELOG.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fextcite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsckott%2Fextcite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fextcite/lists"}