# cx-extractor

> cx-extractor

Latest version **0.0.1** (published 2016-12-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install cx-extractor
pnpm add cx-extractor
yarn add cx-extractor
bun add cx-extractor
```

## 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.1 |
| Published | 2016-12-22 |
| First published | 2016-12-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | jiangzhuo |
| Maintainers | copycat |
| Keywords | cx-extractor |

## Links

- npm: https://www.npmjs.com/package/cx-extractor
- Repository: https://github.com/jiangzhuo/cx-extractor
- Homepage: https://github.com/jiangzhuo/cx-extractor#readme
- Issues: https://github.com/jiangzhuo/cx-extractor/issues
- npm.io page: https://npm.io/package/cx-extractor

## Recent versions

- 0.0.1 (latest) — 2016-12-22

## README

### usage example
```
var Crawler = require("crawler");
var url = require('url');

var c = new Crawler({
  maxConnections: 10,
  // This will be called for each crawled page
  callback: function (error, res, done) {
    if (error) {
      console.log(error);
    } else {
      var $ = res.$;
      // $ is Cheerio by default
      //a lean implementation of core jQuery designed specifically for the server
      // console.log($("title").text());
      // extractHTML(res.body)
      console.log(extractHTML(res.body))
      // console.log()
    }
    done();
  }
});

// Queue just one URL, with default callback
// c.queue('http://blog.sina.com.cn/s/blog_4cbec5e90100dgyy.html');
c.queue('http://world.huanqiu.com/exclusive/2016-12/9838402.html');
```

##TODO  
* process single line html

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