A simple tool for cloning from Sci-Hub.
Project description
_____ __________ ________ ____ _ ________
/ ___// ____/ _/ / ____/ / / __ \/ | / / ____/
\__ \/ / / /_____/ / / / / / / / |/ / __/
___/ / /____/ /_____/ /___/ /___/ /_/ / /| / /___
/____/\____/___/ \____/_____/\____/_/ |_/_____/
A simple tool for cloning from Sci-Hub.
- Python Version > 3.6
Procedure
- Query the Digital Object Identifier (DOI)/URL from crossref.org;
- Download articles from Sci-Hub with the DOI/URL.
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/URL: crossref.org
-
Sci-Hub: sci-hub.wf
Usage
I. Download by DOI.
$ sci-clone DOI [DOI] ...
Examples
- Download two articles with DOIs:
$ sci-clone 10.1126/science.1248506 10.1017/S0003055413000014
- Download with the DOIs within a file: doi.txt or doi.bib
$ sci-clone examples/doi.txt
$ sci-clone examples/doi.bib
II. Download by Year (from a journal).
$ sci-clone ISSN YEAR_FROM [YEAR_TO]
Examples
- Download articles from journal American Journal of Sociology (ISSN: 0002-9602) in year 2020:
$ sci-clone 0002-9602 2020
- Download articles from journal Sociology of Education (ISSN: 0038-0407) from year 2010 to 2012:
$ sci-clone 0038-0407 2010 2012
Useful Configs
- Download and save the files to directory
papers
(should be created before download):
$ sci-clone 0038-0407 2010 2012 -d papers
- If the default Sci-Hub URL is invalid, change it to another valid one:
$ sci-clone 10.1126/science.1248506 -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.4.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for sci_clone-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50bbcaa9512df17aae779384a6cfeabd0c896ec97c39226d4093e972804cd2d5 |
|
MD5 | 027416066ef7fad696a19d92deb17c0e |
|
BLAKE2b-256 | fc6d3c78e6a1de2db409758efe9527174007d5d0f54aa7883fb48822b4e8a983 |