0.0.1-a10 • Published 6 years ago

sscraper v0.0.1-a10

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

SScraper

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

Basic usage
const scraper = require('sscraper')

scraper.connect('http://google.com', function($){
  // here you have jquery object
  console.log( $('a').text() );
})
Usage with save to sqlite
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

0.0.1-a10

6 years ago

0.0.1-a9

6 years ago

0.0.1-a8

6 years ago

0.0.1-a7

6 years ago

0.0.1-a6

6 years ago

0.0.1-a5

6 years ago

0.0.1-a4

6 years ago

0.0.1-a3

6 years ago

0.0.1-a2

6 years ago

0.0.1-a1

6 years ago

0.0.1

6 years ago