This tool scrapes Scribd documents, downloading images from each page and converting to PDF.
Install the package:
npm i scribd-scraper
const scrapeScribd = require('scribd-scraper');
const url = 'https://pt.scribd.com/document/477711709/1990-02-mara-maravilha-pdf';
const dir = './images';
scrapeScribd(url, dir)
.then(() => {
console.log("Images downloaded successfully.");
})
.catch((error) => {
console.error("Error:", error.message);
});
const scrapeScribd = require('scribd-scraper');
const url = 'https://pt.scribd.com/document/477711709/1990-02-mara-maravilha-pdf';
const dir = './images';
const pdf = true;
scrapeScribd(url, dir, pdf)
.then(() => {
console.log("Images downloaded and converted to PDF successfully.");
})
.catch((error) => {
console.error("Error:", error.message);
});