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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

doi2pdf-0.1.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: doi2pdf-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.4.0-153-generic

File hashes

Hashes for doi2pdf-0.1.2.tar.gz
Algorithm Hash digest
SHA256 91827f0147deeb38a27612f478aaa23b787b7132554daee0d95a4fc49fb68290
MD5 6ca1cbb987a4c86e836f27374ffcc9e0
BLAKE2b-256 8afe527877c180b00be667293491480e3d78520a74be75e5cd09af58b32039c7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for doi2pdf-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec9846f49e2805917040d4b6a88f90f0e3338d5fc5939f8bb3b05012e7eee3b3
MD5 696e85587b3aadd961ac9c7de2b42051
BLAKE2b-256 bd5beb9de6a38e746118564a0c857f6eeeea28e046589e6ba4f8e607716818dd

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