# jsmaestro-skrap-plus

> Web Crawler

Latest version **0.0.8** (published 2016-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsmaestro-skrap-plus
pnpm add jsmaestro-skrap-plus
yarn add jsmaestro-skrap-plus
bun add jsmaestro-skrap-plus
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2016-08-07 |
| First published | 2016-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | DavidSunny |
| Maintainers | jsmaestro |
| Keywords | Crawler |

## Links

- npm: https://www.npmjs.com/package/jsmaestro-skrap-plus
- npm.io page: https://npm.io/package/jsmaestro-skrap-plus

## Dependencies (6)

- [cheerio](https://npm.io/package/cheerio.md) ^0.20.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.1
- [superagent](https://npm.io/package/superagent.md) ^2.1.0
- [es6-promise](https://npm.io/package/es6-promise.md) ^3.2.1
- [meteor-promise](https://npm.io/package/meteor-promise.md) ^0.7.2
- [superagent-bluebird-promise](https://npm.io/package/superagent-bluebird-promise.md) ^3.0.2

## Recent versions

- 0.0.8 (latest) — 2016-08-07
- 0.0.7 — 2016-08-07
- 0.0.6 — 2016-08-07
- 0.0.5 — 2016-08-07
- 0.0.2 — 2016-05-26
- 0.0.1 — 2016-05-25

## README

# Web site crawling package with ES2015

## Usage

```
const Crawler = require('jsmaestro-skrap-plus').Crawler;

const pageInfo = {
  url: `http://m.daum.net/`,
  collections: [{
    name: 'ranking',
    query: "$('#channel_news1_realtime .list_realtime')",
    fields: {
      1: "find('li .txt_issue').eq(0).text()",
      2: "find('li .txt_issue').eq(1).text()",
      3: "find('li .txt_issue').eq(2).text()"
    },
  }],
};

const promise = Crawler(pageInfo, {});

promise.then(function(res) {
  // do something
  const page = value.ranking[0]; //  { '1': 'whatever1', '2': 'whatever2', '3': 'whatever3' }
}).catch(function(error) {
  // do error handling
});
```

## For Testing with Mocha and Chai

```
npm test
```

---
_Source: https://npm.io/package/jsmaestro-skrap-plus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
