A powerful library to download files from Pixeldrain and Bunkr galleries
npm install pdb-downloaderA Node.js library to download files from Pixeldrain and Bunkr galleries.
- 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).
``bash`
npm install pdb-downloader
`typescript
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}),Starting ${file} (${size} bytes)
onStart: (file, size) => console.log(),Finished ${file}
onComplete: (file) => console.log(),Error ${file}:
onError: (file, err) => console.error(, err)``
}).then(() => {
console.log("All done!");
});
ISC