https://github.com/website-scraper/website-scraper-existing-directory
Plugin for website-scraper which allows to save resources to existing directory
https://github.com/website-scraper/website-scraper-existing-directory
hacktoberfest javascript nodejs website-scraper
Last synced: about 1 year ago
JSON representation
Plugin for website-scraper which allows to save resources to existing directory
- Host: GitHub
- URL: https://github.com/website-scraper/website-scraper-existing-directory
- Owner: website-scraper
- License: mit
- Created: 2018-12-07T20:31:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-09T21:36:42.000Z (over 1 year ago)
- Last Synced: 2025-04-01T19:21:44.406Z (about 1 year ago)
- Topics: hacktoberfest, javascript, nodejs, website-scraper
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/website-scraper-existing-directory
- Size: 58.6 KB
- Stars: 13
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.org/package/website-scraper-existing-directory)
[](https://www.npmjs.org/package/website-scraper-existing-directory)
[](https://github.com/website-scraper/website-scraper-existing-directory)
[](https://coveralls.io/github/website-scraper/website-scraper-existing-directory?branch=master)
[](https://codeclimate.com/github/website-scraper/website-scraper-existing-directory/test_coverage)
[](https://codeclimate.com/github/website-scraper/website-scraper-existing-directory/maintainability)
# website-scraper-existing-directory
Plugin for [website-scraper](https://github.com/website-scraper/node-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!
## Requirements
* nodejs version >= 18.17
* website-scraper version >= 5
## Installation
```sh
npm install website-scraper website-scraper-existing-directory
```
## Usage
```javascript
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() ]
});
```