# text-scraper

> A library for extracting text from html documents of arbitrary encoding

Latest version **0.1.2** (published 2015-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install text-scraper
pnpm add text-scraper
yarn add text-scraper
bun add text-scraper
```

Provides the command `text-scraper`.

## 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.1.2 |
| Published | 2015-10-07 |
| First published | 2015-09-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tomasz Szczęśniak-Szlagowski |
| Maintainers | spect88 |
| Keywords | cheerio, scraper, encoding |

## Links

- npm: https://www.npmjs.com/package/text-scraper
- Repository: https://github.com/spect88/text-scraper
- Homepage: https://github.com/spect88/text-scraper#readme
- Issues: https://github.com/spect88/text-scraper/issues
- npm.io page: https://npm.io/package/text-scraper

## Dependencies (3)

- [cheerio](https://npm.io/package/cheerio.md) ^0.19.0
- [superagent](https://npm.io/package/superagent.md) ^1.3.0
- [html-to-utf8](https://npm.io/package/html-to-utf8.md) ^0.1.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2015-10-07
- 0.1.1 — 2015-10-07
- 0.1.0 — 2015-09-13

## README

# text-scraper

A tool for easy scraping of text content from HTML documents of arbitrary
encoding.

### Installation

```shell
npm install text-scraper
# or if you only need the shell command:
npm install -g text-scraper
```

### Usage

Node:

```javascript
var textScraper = require('text-scraper');

textScraper.scrapeURL('http://www.bbc.co.uk', function(err, res) {
  console.log(res);
});
// or

var document = new Buffer('<h1>text</h1>', 'binary');
textScraper.scrape(document, 'text/html');
```

Command line:

```shell
text-scraper 'http://en.wikipedia.org'
```

### License

The code is available under [MIT license](LICENSE).

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