website-scraper-existing-directory
v2.0.0
Published
Plugin for website-scraper which allows saving resources to the existing directory
Readme
website-scraper-existing-directory
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!
Sponsors
Maintenance of this project is made possible by all the contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here. 💖
Requirements
- nodejs version: >= 20
- website-scraper version: 6.*
Installation
npm install website-scraper website-scraper-existing-directoryUsage
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() ]
});