Skip to main content

Bulk Springer Textbook Downloader

Project description

springer

Downloading

Longer Demo Springer Textbook Bulk Download Tool

NOTICE:

The author of this software is not affiliated with Springer and this tool is not authorized or supported by Springer. Thank you to Springer for making these high quality textbooks available at no cost.



"With the Coronavirus outbreak having an unprecedented impact on education, Springer Nature is launching a global program to support learning and teaching at higher education institutions worldwide. Remote access to educational resources has become essential. We want to support lecturers, teachers and students during this challenging period and hope that this initiative will go some way to help.

Institutions will be able to access more than 500 key textbooks across Springer Nature’s eBook subject collections for free. In addition, we are making a number of German-language Springer medical training books on emergency nursing freely accessible. These books will be available via SpringerLink until at least the end of July."

Source

This tool automates the tasks of downloading the Springer provided Excel-formatted catalogs and downloading the files described in the catalog.

This utility can be installed using pip:

$ python3 -m pip install springer

Or from the latest source on GitHub:

$ python3 -m pip install git+https://github.com/JnyJny/springer_downloader

The source is available on GitHub.

Catalogs are lists of books in a specific language, spanning a topic. Catalogs are further subdivided into packages which are books grouped by sub-topics.

Textbooks can be downloaded by; specific title, titles belonging to eBook packages or all textbooks in a catalog. Titles and package names can be incompletely specified and will download the best matches.

The available languages are: English & German.

The available topics are: All Disciplines and Emergency Nursing.

Note: The Emergency Nursing topic is not available in English.

Usage:

$ springer [OPTIONS] COMMAND [ARGS]...

Options:

  • -L, --lang [en|de]: Choose catalog language
  • -T, --topic [all|med]: Choose a catalog topic.
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • clean-catalog: Remove cached catalogs.
  • download: Download textbooks from Springer.
  • get-default-catalog: Print the default catalog identifier.
  • list: List books, package, packages, catalog or...
  • refresh-catalog: Refresh the cached catalog of springer...
  • set-default-catalog: Set default catalog language and topic.

springer clean-catalog

Remove cached catalogs.

Examples

Remove the cached default catalog:

$ springer clean-catalog --force

Remove the cached German language Emergency Nursing catalog:

$ springer --language de --topic med clean-catalog --force

Remove all catalogs:

$ springer clean-catalog --force --all

Usage:

$ springer clean-catalog [OPTIONS]

Options:

  • -F, --force
  • --all
  • --help: Show this message and exit.

springer download

Download textbooks from Springer.

This command will download all the textbooks found in the catalog of free textbooks provided by Springer. The default file format is PDF and the files are saved by default to the current working directory.

If a download is interrupted, you can re-start the download and it will skip over files that have been previously downloaded and pick up where it left off.

If the --all option is specified, the --dest-path option specifies the root directory where files will be stored. Each catalog will save it's textbooks to:

dest_path/language/topic/book_file_name.fmt

Errors encountered during the download will be logged to a file named:

dest_path/DOWNLOAD_REPORT.txt

Examples

Download all books in PDF format to the current directory:

$ springer download

Download all books in EPUB format to the current directory:

$ springer download --format epub

Download all books in PDF format to a directory pdfs:

$ springer download --dest-path pdfs

Download books in PDF format to pdfs with overwriting:

$ springer download --dest-path pdfs --over-write

Download all books in PDF from the German/All_Disciplines catalog:

$ springer --language de --topic all download --dest-path german/all/pdfs

Download all books from all catelogs in epub format:

$ springer download --all --format epub

Download all books in the 'Computer Science' package in pdf format:

$ springer download --package-name computer

Usage:

$ springer download [OPTIONS]

Options:

  • -t, --book-title TEXT: Book title to match (partial title OK)
  • -p, --package-name TEXT: Package name to match (partial name OK).
  • -f, --format [pdf|epub]: [default: pdf]
  • -d, --dest-path PATH: Destination directory for downloaded files. [default: /Users/ejo/local/springer]
  • -W, --over-write: Over write downloaded files. [default: False]
  • --all: Downloads books from all catalogs.
  • --help: Show this message and exit.

springer get-default-catalog

Print the default catalog identifier.

This is the default catalog that will be used when listing books and packages and the user has not specified a --language or --topic on the command line.

Usage:

$ springer get-default-catalog [OPTIONS]

Options:

  • --help: Show this message and exit.

springer list

List books, package, packages, catalog or catalogs.

Display information about books, packages, and catalogs. Packages are sets of books grouped by subject.

Examples

List titles available in the default catalog:

$ springer list books

List packages available in the default catalog:

$ springer list packages

List titles available in the German language, all disciplines catalog:

$ springer --language de --topic all list books

List all eBook packages in the default catalog:

$ springer list packages

List all eBook packages in the default catalog whose name match:

$ springer list package -m science

List information about the current catalog:

$ springer list catalog

List information about the Germal language, Emergency Nursing catalog:

$ springer --language de --topic med list catalog

Usage:

$ springer list [OPTIONS] [catalogs|catalog|packages|package|books]

Options:

  • -m, --match TEXT: String used for matching.
  • -l, --long-format: Display selected information in a longer format. [default: False]
  • --help: Show this message and exit.

springer refresh-catalog

Refresh the cached catalog of springer textbooks.

If --all is specified, the --url option is ignored.

Examples

Update English language catalog:

$ springer --language en refresh

Update German language catalog whose topic is 'all':

$ springer --language de --topic all refresh

Update German language catalog whose topic is 'med' with a new url:

$ springer -l de -d med refresh --url https://example.com/api/endpoint/something/v11

NOTE: THIS URL DOES NOT REPLACE THE DEFAULT URL FOR THE TARGET CATALOG

Update all catalogs:

$ springer refresh-catalog --all

Usage:

$ springer refresh-catalog [OPTIONS]

Options:

  • -u, --url TEXT: URL for Excel-formatted catalog.
  • --all
  • --help: Show this message and exit.

springer set-default-catalog

Set default catalog language and topic.

Examples

Set the default catalog to German language:

$ springer --language de set-default-catalog

Set the default catalog to German and emergency nursing:

$ springer --language de --topic med set-default-catalog

Set the default catalog to English and all disciplines topic:

$ springer --language en --topic all set-default-catalog

Note: The only English language catalog is en-all.

Usage:

$ springer set-default-catalog [OPTIONS]

Options:

  • --help: Show this message and exit.

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

springer-0.11.0.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

springer-0.11.0-py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 3

Supported by

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