Plugin for website-scraper which allows to save resources to existing directory.
Please keep in mind that saving to existing directory may overwrite your files. Be careful with it!
- nodejs version >= 18.17
- website-scraper version >= 5
npm install website-scraper website-scraper-existing-directory
import scrape from 'website-scraper';
import SaveToExistingDirectoryPlugin from 'website-scraper-existing-directory';
await scrape({
urls: ['http://example.com'],
directory: '/path/to/save',
plugins: [ new SaveToExistingDirectoryPlugin() ]
});