Skip to content

Interact with content on NLS Braille and Audio Reading Download site

Notifications You must be signed in to change notification settings

mraccola/nls-bard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project consists of one Groovy script (GetBooks.groovy) that is used to download books from the BARD service.

The script will download all the books going N number of days back and optionally filter the result to only books for a certain day. The script will then attempt a login using the supplied user name and password. The script will then download each book in the filtered book number result.

Prerequisites

  • Java must be installed and on the system path.

  • Groovy must be instaleld and on the system path. See Groovy - Installing Groovy. The script was tested with version 1.8.6 but any recent version shoudl be fine.

Running

The script can be run by typing the following command in a command window (you must be in the directory containing the script):

groovy GetBooks.groovy daysBack username password [date in format MM-dd-yyyy]
  • daysBack is an integer specifying the number of days back to use in the query
  • username is the BARD username
  • password is the BARD password
  • date is the, optional, date to use to filter the results Example: 2-17-2012

An alternative on Unix/Linux is to use the getBooks.sh bash script. This script will prompt for the 4 parameters and then call the GetBooks.groovy script.

Outcome

The script will create one ZIP file in the current directory for each book. The name of the file will be the book's title number. Example: War and Peace.zip

Known Issues

Please see (https://github.com/mraccola/nls-bard/issues/) for Issue list.

About

Interact with content on NLS Braille and Audio Reading Download site

Resources

Stars

Watchers

Forks

Packages