# sscraper

> Simple scraper for node js (with phantom and cheerio)

Latest version **0.0.1-a10** (published 2018-01-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install sscraper
pnpm add sscraper
yarn add sscraper
bun add sscraper
```

## 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-a10 |
| Published | 2018-01-13 |
| First published | 2018-01-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dualsine |

## Links

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

## Dependencies (3)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2
- [phantom](https://npm.io/package/phantom.md) ^4.0.12
- [sqlite3](https://npm.io/package/sqlite3.md) ^3.1.13

## Recent versions

- 0.0.1-a10 (latest) — 2018-01-13
- 0.0.1-a9 — 2018-01-13
- 0.0.1-a8 — 2018-01-12
- 0.0.1-a7 — 2018-01-12
- 0.0.1-a6 — 2018-01-12
- 0.0.1-a5 — 2018-01-12
- 0.0.1-a4 — 2018-01-12
- 0.0.1-a3 — 2018-01-12
- 0.0.1-a2 — 2018-01-12
- 0.0.1-a1 — 2018-01-12
- 0.0.1 — 2018-01-12

## README

# SScraper

This project connects phantomjs, cheerio and sqlite for fast scraping.

##### Basic usage
```js
const scraper = require('sscraper')

scraper.connect('http://google.com', function($){
  // here you have jquery object
  console.log( $('a').text() );
})
```

##### Usage with save to sqlite

```js
const scraper = require('sscraper')

scraper.create_db( 'news', {
  title: { unique: true }
})

scraper.connect( 'http://wp.pl', function( $ ) {

  $( 'li[data-type=teaser]' ).each( function(){
    scraper.insert_db('news', $(this).text() )
  })

})
```

### Documentation

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