Headless scrapper developed to run in serverfull and serverless infra.
npm install @zigtech/scrapperFast, easy and full typed scrapper.
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Build Status][travis-image]][travis-url]
``ts
import { JobStep, Page } from '@zigtech/scrapper';
const run = async (page: Page) => {
await page.open();
const { step, options }: JobStep<'navigate'> = {
step: 'navigate',
options: {
url: 'https://github.com/zigante/scrapper',
waitTime: 1000,
},
};
await page.processStep(step, options);
await page.close();
};
run(new Page({ resultPath: './tmp' }));
`
This is a Node.js module available through the
npm registry.
Before installing, download and install Node.js.
Node.js 0.10 or higher is required.
If this is a brand new project, make sure to create a package.json first withnpm init
the command.
Installation is done using the
npm install command:
`bash``
$$ npm install --save @zigtech/scrapper
[npm-image]: https://img.shields.io/npm/v/@zigtech/scrapper.svg
[npm-url]: https://npmjs.org/package/@zigtech/scrapper
[downloads-image]: https://img.shields.io/npm/dm/@zigtech/scrapper.svg
[downloads-url]: https://npmcharts.com/compare/@zigtech/scrapper?minimal=true
[travis-image]: https://travis-ci.com/zigante/scrapper.svg?branch=stable
[travis-url]: https://travis-ci.com/zigante/scrapper