Skip to main content

Download pdfs from Scihub via DOI.

Project description

SciDownl

Download pdfs from Scihub via DOI.

  • Easy to use.
  • Easy to deal with captcha.
  • Easy to update Scihub newest domains.

Install

pip3 install scidownl

Usage

Command line

$ scidownl -h
usage: Command line tool to download pdf via DOI from Scihub.
       [-h] [-D DOI] [-o OUTPUT] [-u]

optional arguments:
  -h, --help            show this help message and exit
  -D DOI, --DOI DOI     the DOI number of the paper
  -o OUTPUT, --output OUTPUT
                        directory to download the pdf
  -u, --update          update available Scihub links

Examples

# download to the current directory
$ scidownl -D 10.1021/ol9910114
$ scidownl -D 10.1021/ol9910114 -o .

# download to the specified directory
$ scidownl -D 10.1021/ol9910114 -o paper

# update available links of Scihub
$ scidownl -u
[INFO] Updating links ...
[INFO] http://sci-hub.se
[INFO] http://sci-hub.tw
[INFO] https://sci-hub.se
[INFO] https://sci-hub.tw

# if show 'PermessionError' when updating, just use sudo.
$ sudo scidownl -u

Module

Download a paper via DOI.

from scidownl.scihub import *

DOI = "10.1021/ol9910114"
out = 'paper'
sci = SciHub(DOI, out)
sci.download()

Update available Scihub links.

from scidownl.update_link import *

# Use crawling method to update available Scihub links.
update_link(mod='c')
# Use brute force search method to update available Scihub links.
update_link(mod='b')

RELEASE

  • v0.1.0: First release.
  • v0.2.0:
    • Optimized the download speed.
    • Optimized the captcha processment.
  • v0.2.1:
    • Applied stream download.
    • Display of download progress is added.
    • Fixed bugs of invalid scihub links.

LICENSE

Copyright (c) 2019 tishacy.

Licensed under the MIT License.

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

scidownl-0.2.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

scidownl-0.2.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file scidownl-0.2.1.tar.gz.

File metadata

  • Download URL: scidownl-0.2.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for scidownl-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3e87316cf92f90cbd68e647d944188139988136fa474e0845c0a9ca56003d5c6
MD5 ff34cac98ec08a76bd22648da819e2a7
BLAKE2b-256 242520e5a5d4d47608d36c164f7ef8d04a421a5383bff80c3fb49c261a77df70

See more details on using hashes here.

File details

Details for the file scidownl-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: scidownl-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for scidownl-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f023a5c2b69e6e10dff4750d1f5554654aa17c7f23aae9e997ff93db95e6d552
MD5 babfe12140033ca9f4ea4c9acb14c46e
BLAKE2b-256 85d1013b27fd96e7c9f01598c11a5a5bc286f6a5d0e6655d023c3fea7557cb94

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