# data-miner

> A node tool to mine data off the internet

Latest version **0.0.0** (published 2015-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install data-miner
pnpm add data-miner
yarn add data-miner
bun add data-miner
```

## 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.0 |
| Published | 2015-04-17 |
| First published | 2015-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+5 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yang Li |
| Maintainers | yangli1990 |
| Keywords | datamine, webminer |

## Links

- npm: https://www.npmjs.com/package/data-miner
- Repository: https://github.com/yangli1990/data-miner
- Issues: https://github.com/yangli1990/data-miner/issues
- npm.io page: https://npm.io/package/data-miner

## Dependencies (3)

- [jsdom](https://npm.io/package/jsdom.md) ^3.1.2
- [jquery](https://npm.io/package/jquery.md) ^2.1.3
- [request](https://npm.io/package/request.md) ^2.55.0

## Recent versions

- 0.0.0 (latest) — 2015-04-17

## README

# data-miner
A tool to mine data from the internet.
This tool is simple to use and follows some of the $http syntax you see with front-end frameworks such as AngularJS.
To traverse through the dom, it uses jQuery's syntax

##Why I created this

I like to mine data from the internet, for most modern websites that can be done easily by using their APIs.  With older sites this is much harder so I created data-miner. data-miner uses the syntax frontend engineers might be familiar with.  Data mine fetches the data and then uses jquery to find the dom elements containing the data.  It's really simple give it a try today!

##Install
````
npm install data-miner
````

##Example

This example shows us how we can mine the the number of stars in a page

````javascript
var dataMiner = require('data-miner');

dataMiner.fetch('https://github.com/yangli1990/data-miner').success(function($){
	console.log($('.social-count.js-social-count').text().trim());
}).error(function(data){
	console.log(data);
}).finally(function(){
	console.log('finished');
})

````

##Future Versions

For future versions, the plan is to add some header capability with the get requests.

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