# eighty-app

> A class that people can extend to create their own custom scraper to use on 80legs.com

Latest version **1.26.0** (published 2020-10-08) · 0 weekly downloads

## Install

```sh
npm install eighty-app
pnpm add eighty-app
yarn add eighty-app
bun add eighty-app
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.26.0 |
| Published | 2020-10-08 |
| First published | 2016-11-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 173.6 KB |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| Author | datafiniti |
| Maintainers | hadrienbx, bentanzer, davidpoulos, mistermoe, shiondev, vincentzierigen, hrgoulden, travis.roberts2 |

## Links

- npm: https://www.npmjs.com/package/eighty-app
- npm.io page: https://npm.io/package/eighty-app

## Dependencies (4)

- [chai](https://npm.io/package/chai.md) ^1.10.0
- [mocha](https://npm.io/package/mocha.md) ^5.2.0
- [lodash](https://npm.io/package/lodash.md) 4.17.11
- [cheerio](https://npm.io/package/cheerio.md) ^0.22.0

## Recent versions

- 1.26.0 (latest) — 2020-10-08
- 1.25.0 — 2020-10-08
- 1.24.0 — 2020-10-07
- 1.23.0 — 2020-08-19
- 1.21.3-alpha.1 — 2020-08-13
- 1.21.3-alpha.0 — 2020-08-11
- 1.21.2 — 2019-04-23
- 1.21.1 — 2019-04-22
- 1.21.0 — 2019-04-22
- 1.20.0 — 2018-09-14
- 1.19.0 — 2018-08-17
- 1.18.2 — 2018-07-13
- 1.18.1 — 2018-07-10
- 1.18.0 — 2018-07-02
- 1.17.0 — 2018-07-02
- … 17 more at https://npm.io/package/eighty-app/versions

## README

# EightyApp

**description**: A class that people can extend to create their own custom scraper to use on [80legs.com](http://80legs.com/)

**Usage**:

```javascript
var EightyApp = require("eighty-app");
var app = new EightyApp();

app.processDocument = function(html, url, headers, status, $) {
  
  /* First we parse the HTML into a lightweight DOM equipped with jquery-like dom-traversal functions */
  var $html = app.parseHtml(html, $);
  var data = {}; 

  /* dig out any data you want from within the DOM. Add that data to the data object */

  /* Serialize the data object. You'll see this data object in a result file for a crawl using this 80app */ 
  return JSON.stringify(data); 
}
app.parseLinks = function(html, url, headers, status, $) {
  
  /* First we parse the HTML into a lightweight DOM equipped with jquery-like dom-traversal functions */
  var $html = app.parseHtml(html, $);
  var links = []; 

  /* dig out any links that you want to crawl from within the DOM. Add those links to the links array */  

  /* whatever links you add to this array will also be crawled */
  return links;
}

/* don't forget to add this in! Otherwise we won't be able to use your scraper from within our crawling engine */
module.exports = function() {
  return app;
}
```

refer [here](https://80legs.groovehq.com/help_center) for additional support

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