@gdc-js/gdc-collector-http

0.5.3 • Public • Published

#The http(s) data collector

A GDC module for collection of http(s) pages. Can collect multiple pages.

Usage example:



const {GDCCollectorHttp} = require('@gdc-js/gdc-collector-http');
const {GDCCallbackDataReceiver} = require('@gdc-js/common');
const {GDCLogNotificationHandler} = require('@gdc-js/common');

const httpCollector = new GDCCollectorHttp({
      properties: {},
      dataReceiver: new GDCCallbackDataReceiver((data, meta) => {
        console.log(data);
        console.log(meta);
      }),
      notificationHandler: new GDCLogNotificationHandler(),
    });
httpCollector.collect(['http://www.iiiiiiii.com/index.html', 'https://www.google.com/index.html']);

Dependencies (2)

Dev Dependencies (3)

Package Sidebar

Install

npm i @gdc-js/gdc-collector-http

Weekly Downloads

1

Version

0.5.3

License

MIT

Unpacked Size

10.9 kB

Total Files

8

Last publish

Collaborators

  • eladp