Skip to content

dwinkler1/SpringerQuarantineBooks.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Springer books for the quarantine

Two functions are exported by this package:

  1. The list of currently free books can be downloaded for subsetting: This function returns a DataFrame of the list.
path = pwd()
bl = getbooklist(path, name = "booklist.xlsx")
  1. The books are downloaded based on the booklist:
loadbooks(path, bl[1:3, :])

Example

This example will download the first three Mathematics books:

using SpringerQuarantineBooks
using DataFrames

path = "/home/daniel/Documents/books"
booklist = getbooklist(path, name = "booklist.xlsx")

mathbooks = filter(row -> occursin(r".*Mathematics.*", row[Symbol("English Package Name")]),booklist)

loadbooks(path, mathbooks[1:3, :])

Some books are available as EPUBs. Those can be downloaded by setting format="epub". format is not case sensitive.

loadbooks(path, mathbooks[1:3,:], format = "epub")

Further options are:

  • fixnames = true -> Replace whitespace and commas in filenames with '_'
  • verbose = true -> Show progress bar
  • printerrors = (lowercase(format) == "pdf") -> Print error message if download fails defaults to true only if format is pdf as errors occur when epub is not available

About

A package to download free books from Springer using Julia

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages