Documentation

The SciHub class

class pyscihub.pyscihub.SciHub(url, output_path)[source]

Bases: object

The SciHub object can be used to download PDFs from SciHub after initialisation.

Initialises the SciHub object with the Sci-Hub url url and writes all PDFs to the output_path folder.

Parameters
  • url (str) – Sci-Hub URL to use

  • output_path (Path) – The folder to download all PDFs to

download(queries)[source]

Download articles for provided queries

Parameters

queries (list(str)) – List of queries to look up

Raises

ValueError – If argument is not a string or list of strings