doi2pdf-0.1.1
توضیحات
Retrieve research paper PDF from DOI, name or URL of the research paper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | doi2pdf-0.1.1 |
| نام | doi2pdf |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | croumegous |
| ایمیل نویسنده | cyril.roumegous@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/doi2pdf/ |
| مجوز | MIT |
# 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
```bash
pip install doi2pdf
```
## CLI usage
```bash
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.
```python
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:
```bash
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.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.1,<3.0.0 | requests |
| >=4.11.1,<5.0.0 | beautifulsoup4 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl doi2pdf-0.1.1:
pip install doi2pdf-0.1.1.whl
نصب پکیج tar.gz doi2pdf-0.1.1:
pip install doi2pdf-0.1.1.tar.gz