pdb-downloader
v1.0.0
Published
A powerful library to download files from Pixeldrain and Bunkr galleries
Maintainers
Readme
PDB Downloader
A Node.js library to download files from Pixeldrain and Bunkr galleries.
Features
- Pixeldrain: Downloads files individually from galleries/lists (instead of one giant zip).
- Bunkr: Scrapes albums, handles pagination, and decrypts secure download links.
- Concurrency: Parallel downloads support.
- Resilient: Retries and proper error handling (basic implementation).
Installation
npm install pdb-downloaderUsage
import { PDBDownloader } from 'pdb-downloader';
const downloader = new PDBDownloader();
const url = 'https://pixeldrain.com/l/YOUR_LIST_ID';
// OR
// const url = 'https://bunkr.cr/a/YOUR_ALBUM';
downloader.download(url, {
outputDir: './downloads',
concurrency: 3,
onLog: (msg) => console.log(`[LOG] ${msg}`),
onStart: (file, size) => console.log(`Starting ${file} (${size} bytes)`),
onComplete: (file) => console.log(`Finished ${file}`),
onError: (file, err) => console.error(`Error ${file}:`, err)
}).then(() => {
console.log("All done!");
});License
ISC
