Download articles from Sci-Hub given the article's DOI
Go to file
2025-01-22 01:14:28 -06:00
.gitignore fix: pdf_url extraction 2025-01-22 01:14:28 -06:00
dl_sh_source.py fix: pdf_url extraction 2025-01-22 01:14:28 -06:00
LICENSE Initial commit 2024-12-04 22:51:59 -06:00
pyproject.toml fix: pdf_url extraction 2025-01-22 01:14:28 -06:00
README.md Initial commit 2024-12-04 22:51:59 -06:00

dl-sh-source

This program downloads an article from Sci-Hub to the current working directory.

Installation

pipx install dl-sh-source --include-deps

Usage

Use the original article's digital object identifier (DOI) for the ARTICLE_NAME argument. Use a working Sci-Hub proxy as the SCIHUB_URL argument. For example, if the article's DOI URL is 10.1192/bjp.173.6.519, and the Sci-Hub proxy you want to use is https://sci-hub.st, then the entire command would look like the following:

cd ~/downloads
dl-sh-source "https://sci-hub.st" "10.1192/bjp.173.6.519"

Output:
--> /home/jas/downloads/paykel1998.pdf

However, if the article cannot be found on Sci-Hub, you'll get the following message:

Output:
:(
Unfortunately, Sci-Hub doesn't have the requested document: 10.1192/bjp.173.6.519

Note: make sure to use quotes around the Sci-Hub URL and DOI in the arguments to dl-sh-source.