Go to file
Nemo 2d7430e780 Switch to official crystal image 2020-04-04 03:39:19 +05:30
spec Adds fix for corrupt PDF error from MUSE 2020-04-04 01:24:35 +05:30
src Adds fix for corrupt PDF error from MUSE 2020-04-04 01:24:35 +05:30
.dockerignore Adds a release build script 2020-04-04 02:02:30 +05:30
.editorconfig Initial commit 2020-03-29 00:59:47 +05:30
.gitignore Catch books with missing dates 2020-04-04 01:10:11 +05:30
.travis.yml move shards install to install stage 2020-04-04 02:02:30 +05:30
Dockerfile docker 2020-04-04 02:02:30 +05:30
LICENSE Initial commit 2020-03-29 00:59:47 +05:30
Makefile Adds a release build script 2020-04-04 02:02:30 +05:30
README.md MOAR badges 💥 2020-04-01 02:15:48 +05:30
shard.lock Adds stitching and first page strip 2020-03-29 17:51:01 +05:30
shard.yml Version Bump 2020-04-04 01:19:59 +05:30
static.Dockerfile Switch to official crystal image 2020-04-04 03:39:19 +05:30

README.md

muse-dl Travis (.org) GitHub issues GitHub issues by-label GitHub GitHub top language PRs Welcome

Download PDFs from Project MUSE and stitch them together into a single-file using pdftk.

⚠️ WARNING ⚠️

Any downloads you perform with this tool are for your own usage. I personally hate reading PDFs on a browser, this lets me read them much more easily offline. This is just for personal use.

Installation

git clone https://github.com/captn3m0/muse-dl.git
cd muse-dl
shards install
shards build
./bin/muse-dl --help

Requirements

Please ensure you have pdftk installed, and run the muse-dl binary. To build the binary, please run the steps in Installation.

Usage

Usage: muse-dl [--flags] [URL|INPUT_FILE]

URL: A link to a book on the Project MUSE website, eg https://muse.jhu.edu/book/875
INPUT_FILE: Path to a file containing a list of links

    --no-cleanup                     Don't cleanup temporary files
    --tmp-dir PATH                   Temporary Directory to use
    --output FILE                    Output Filename
    --no-bookmarks                   Don't add bookmarks in the PDF
    --input-pdf INPUT                Input Stitched PDF. Will not download anything
    --clobber                        Overwrite the output file, if it already exists. Not compatible with input-pdf
    --cookie COOKIE                  Cookie-header
    -h, --help                       Show this help

Sample Run

muse-dl https://muse.jhu.edu/book/875
Saved final output to Accommodating Revolutions- Virginia's Northern Neck in an Era of Transformations, 1760-1810.pdf

Alternatively, if you pass a input-file.txt (sample), you can pass it as the sole parameter.

muse-dl input.txt

And it will download all the links in that file.

License

Licensed under the MIT License. See LICENSE file for details.