Skip to main content

A simple tool for cloning from Sci-Hub.

Project description


             _____ __________     ________    ____  _   ________
            / ___// ____/  _/    / ____/ /   / __ \/ | / / ____/
            \__ \/ /    / /_____/ /   / /   / / / /  |/ / __/
           ___/ / /____/ /_____/ /___/ /___/ /_/ / /|  / /___
          /____/\____/___/     \____/_____/\____/_/ |_/_____/

               A simple tool for cloning from Sci-Hub.

  • Python Version > 3.6

Procedure (by ISSN)

  1. Query the Digital Object Identifier (DOI)/URL/PMID from crossref.org;
  2. Download articles from Sci-Hub with the DOI/URL/PMID.

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 you cannot connect to PyPI:
pip install git+https://github.com/f10w3r/sci-clone

Default Sources

Usage

I. Download by DOI/URL.

sci-clone DOI/URL/PMID [DOI/URL/PMID] ...

Examples

  • Download two articles with DOI/URL/PMID:
sci-clone 10.1126/science.1248506 https://www.jstor.org/stable/27854031
  • Download with the DOI/URL/PMID within a file: papers.txt or papers.bib
sci-clone examples/papers.txt
sci-clone examples/papers.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

Upgrade

pip install sci-clone --upgrade

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


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.3.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sci_clone-0.4.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file sci-clone-0.4.3.tar.gz.

File metadata

  • Download URL: sci-clone-0.4.3.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for sci-clone-0.4.3.tar.gz
Algorithm Hash digest
SHA256 a82d1a9f50a712e11fc4731387df07e1df825c07b0143b5803ec5fc1c94c3346
MD5 f6a9adef59780d0f2a94170aa00f4969
BLAKE2b-256 db5f76140604bdfee850d45e4a9b97a7cee80aaadc22d229aeca347fa9c81de7

See more details on using hashes here.

File details

Details for the file sci_clone-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: sci_clone-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for sci_clone-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 946febfd2be7ada3e1c583a7c5728f953d8893193fd0fb59dde3a690c66b17ce
MD5 b9db61f5f70f733732d5ab14fd647226
BLAKE2b-256 68aee77a8ad0c7b4c0acf1a703825df445d32d4590a1bd74960f37d57d61c661

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page