# pdf-bulk-downloader

> PDF bulk downloader

Latest version **0.8.2** (published 2017-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install pdf-bulk-downloader
pnpm add pdf-bulk-downloader
yarn add pdf-bulk-downloader
bun add pdf-bulk-downloader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.2 |
| Published | 2017-07-07 |
| First published | 2017-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Orsika Labuda |
| Maintainers | labudao |

## Links

- npm: https://www.npmjs.com/package/pdf-bulk-downloader
- Repository: https://github.com/labudao/pdf-bulk-downloader
- Issues: https://github.com/labudao/pdf-bulk-downloader/issues
- npm.io page: https://npm.io/package/pdf-bulk-downloader

## Recent versions

- 0.8.2 (latest) — 2017-07-07
- 0.8.1 — 2017-07-07
- 0.8.0 — 2017-07-07

## README

## Goal
This is a library which downloads multiple PDF files from a site when they have the same url pattern with a one-by-one incremented number. The library replaces manual one-by-one downloading of the files with one simple API call.

## Usage of the API
#### PDFs to download:
* https://any.host/pdfs/text1.pdf
* https://any.host/pdfs/text2.pdf
* ...
* https://any.host/pdfs/text12.pdf

#### Expected results (locally downloaded files in your ``out`` directory):
* text01.pdf
* text02.pdf
* ...
* text12.pdf

#### How to call it:

```
var downloader = require('pdf-bulk-downloader')

const urlPattern = 'https://any.host/pdfs/text[n].pdf'
const from = 1
const to = 12

downloader.start(urlPattern, from, to)
```

- configure ``urlPattern``, ``from``, ``to``
- keep ``[n]`` as is: it is a placeholder recognized by the application, which is replaced by the numbers from ``from`` to ``to`` incremented by 1.

## Installation
```
npm install pdf-bulk-downloader --save-dev
```

## Examples
See a typical usage in ``download-pdfs.js``:
```
$ git clone https://github.com/labudao/pdf-bulk-downloader.git --depth 1
$ cd pdf-bulk-downloader
$ npm install
$ npm run test
```

---
_Source: https://npm.io/package/pdf-bulk-downloader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
