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.3.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file doi2pdf-0.1.3.tar.gz
.
File metadata
- Download URL: doi2pdf-0.1.3.tar.gz
- Upload date:
- Size: 3.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f12d453246280b40177b53208cee3ee588857f0a8abae1a5d10f0682902623f |
|
MD5 | 05083f90bb9414eeac87bf9c8a6bdfce |
|
BLAKE2b-256 | a30db4d70a18a89b4d03f286701d2f94b3cd89fd6a93b45456874afdce971f2d |
File details
Details for the file doi2pdf-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: doi2pdf-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f858b8f09957e318d9a0edc3ca0e0d537ff37416dac7de4e3a80d2308219b4fa |
|
MD5 | 1d942b2568597d13006fbd9f5454437c |
|
BLAKE2b-256 | 9a93345a2c543d5d032e79ce562dceb2fa216b54bbce249ec2894641cfe87157 |