Skip to content

Retrieve research paper PDF from DOI, name or URL of the research paper

License

Notifications You must be signed in to change notification settings

croumegous/doi2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doi2pdf

doi2pdf is a command line tool to download PDFs of reasearch paper from DOI, name or url, written in Python.
It can be used either as a command line tool or as inside a Python script.

Installation

pip install doi2pdf

CLI usage

doi2pdf --name "Attention is all you need" --output "Transformer.pdf" --open
doi2pdf --url "https://arxiv.org/abs/1706.03762" --output "Transformer.pdf" --open
doi2pdf --doi "10.48550/arXiv.2203.15556" --output "Chinchilla.pdf" --open

Can also be used as a library.

from doi2pdf import doi2pdf

doi2pdf("10.48550/arXiv.2203.15556", output="Chinchilla.pdf")

Troobleshooot

  • If error DOI not found appears it means sci hub could not retrieve the paper, you might need to override default sci-hub URL with a mirror, like so:
SCI_HUB_URL=https://sci-hub.wf/ doi2pdf --name "Attention is all you need" --open
  • If error Paper not found appears, you might want to try another way to retrieve the research paper, using DOI instead of name or name instead of URL.

About

Retrieve research paper PDF from DOI, name or URL of the research paper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages