Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doi2pdf-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

doi2pdf-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file doi2pdf-0.1.0.tar.gz.

File metadata

  • Download URL: doi2pdf-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.4.0-126-generic

File hashes

Hashes for doi2pdf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 74d667ee6ca228496154f251af7454c0e8bbdf709544c1253a0392cf3f38d468
MD5 6199a56b2ef88fef6c4050994b1528f4
BLAKE2b-256 4a0fed7bd376ba393c6d77aea4e0a1db0ab144f733041f9938b2835f900de7ea

See more details on using hashes here.

File details

Details for the file doi2pdf-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: doi2pdf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.4.0-126-generic

File hashes

Hashes for doi2pdf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69244b1695a3fafe8527fb4a1ca2493e45b3d22e4798c3818b24e49d367a81d3
MD5 6c08441c412ca1456de1ed3149ecbdef
BLAKE2b-256 437056c6e8e3190627cb1493d216f8ded5fdfb134a33356c522a8e102fd6b890

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page