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.1.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file doi2pdf-0.1.1.tar.gz
.
File metadata
- Download URL: doi2pdf-0.1.1.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-131-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bbd45441752a0de5a60facbe4f356e533edbb6524662b06468ec3b74f1e2b77 |
|
MD5 | c441df693d10bd61d11699086c98eac6 |
|
BLAKE2b-256 | 3d766693f117fd6433e3cba7126981f7a5a4f13721ac97763e6ec60081ba31c9 |
File details
Details for the file doi2pdf-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: doi2pdf-0.1.1-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-131-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9688066b5a91be8dd09435e83aab1c97a2dc8e76639a96f2238bf86fa331035d |
|
MD5 | cb1d9d09937dcc56d4cc1d15b6442de6 |
|
BLAKE2b-256 | 140d9aa6cf7afb41997607a82282e0e634e1efbc647ffaf2594120c37fcfd892 |