A simple tool for cloning from Sci-Hub.
Project description
_____ __________ ________ ____ _ ________
/ ___// ____/ _/ / ____/ / / __ \/ | / / ____/
\__ \/ / / /_____/ / / / / / / / |/ / __/
___/ / /____/ /_____/ /___/ /___/ /_/ / /| / /___
/____/\____/___/ \____/_____/\____/_/ |_/_____/
A simple tool for cloning from Sci-Hub.
Procedure
- Query the Digital Object Identifier (DOI) from crossref.org;
- Download articles from Sci-Hub with the DOIs.
Installation
- The simple command:
$ pip install sci-clone
- or provide PyPI index if the above command fails:
$ pip install sci-clone -i https://pypi.org/simple
- or install from this repository if your country cannot connect to PyPI:
$ pip install git+https://github.com/f10w3r/sci-clone
Default Sources
-
DOI: crossref.org
-
Sci-Hub: sci-hub.tf
Usage
I. Download by DOI.
$ sci-clone doi --help
Usage: sci-clone doi [OPTIONS] DOI...
Arguments:
DOI... Valid DOI(s) or file (*.bib, *.txt) [required]
Options:
-d, --dir PATH Directory to download [default: (dynamic)]
-s, --scihub TEXT Valid Sci-Hub URL [default: sci-hub.tf]
--help Show this message and exit.
Examples
- Download two articles with DOIs:
$ sci-clone doi 10.1126/science.1248506 10.1017/S0003055413000014
- Download with the DOIs within bib.txt file:
$ sci-clone doi bib.txt
II. Download by Year.
$ sci-clone issn --help
Usage: sci-clone issn [OPTIONS] ISSN YEAR:[%Y]...
Arguments:
ISSN Journal ISSN (e.g.: 0002-9602) [required]
YEAR:[%Y]... From year to year (e.g.: 2011 2012) [required]
Options:
-d, --dir PATH Directory to download [default: (dynamic)]
-s, --scihub TEXT Valid Sci-Hub URL [default: sci-hub.tf]
--help Show this message and exit.
Examples
- Download articles from journal American Journal of Sociology (ISSN: 0002-9602) in year 2020:
$ sci-clone issn 0002-9602 2020
- Download articles from journal Sociology of Education (ISSN: 0038-0407) from year 2010 to 2012, save the files to directory
AJS_2010-2012
(should be created in advance):
$ sci-clone issn 0038-0407 2010 2012 -d AJS_2010-2012
- If the default Sci-Hub URL is invalid, change it to another valid one:
$ sci-clone issn 0038-0407 2010 2012 -s sci-hub.tw
Uninstallation
$ pip uninstall sci-clone
Notes
Sci-Hub does not have every article that has DOI, the ones that not found are logged in file missing.log
under each sub-directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sci-clone-0.3.3.9.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for sci_clone-0.3.3.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1a470d99c002d8a92e28cb8e7dec05af31a41e2adfa4b4ac8b55e4709de499 |
|
MD5 | 786cc8a1a4ce239d0805122e8dc0babc |
|
BLAKE2b-256 | dfa7831e30783456f91307f3837cc7b919203377bf3d0cebb3f8ef3fbe6e50e9 |