1.1.3 • Published 6 years ago

har-generator v1.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

HAR Generator

npm version

Simple har scrapper by headless chrome

Requirements

NodeJs 8.0 up

Getting Start

Install package

npm install har-generator

Example

const HarGenerator = require('har-generator');
const options = {
    url: 'https://github.com/Asing1001/har-generator',
    harFolder: 'dist',
    prettify: false,
    jobInterval: 1
}
const harGen = new HarGenerator(options);
harGen.start();

Options

  • Tasks: it is an array, you could add more task to run in parallel
  • url: target url for har
  • harFolder: destination for saving har files
  • prettify: default false, set to true for human read
  • jobInterval: interval in minute for trigger next run

Others

  • If chrome memory high or could not connect
const { cleanup } = require('./lib/harGenerator');
cleanup()
1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.1.1

6 years ago

1.0.0

6 years ago