website-scraper / website-scraper-existing-directory

Plugin for website-scraper which allows to save resources to existing directory

Home Page:https://www.npmjs.com/package/website-scraper-existing-directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version Downloads Node.js CI Coverage Status Test Coverage Maintainability

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!

Requirements

  • nodejs version >= 14.14
  • website-scraper version >= 5

Installation

npm install website-scraper website-scraper-existing-directory

Usage

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() ]
});

About

Plugin for website-scraper which allows to save resources to existing directory

https://www.npmjs.com/package/website-scraper-existing-directory

License:MIT License


Languages

Language:JavaScript 100.0%