0.0.1-a10 • Published 7 years ago

sscraper v0.0.1-a10

Weekly downloads
1
License
ISC
Repository
-
Last release
7 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

7 years ago

0.0.1-a9

7 years ago

0.0.1-a8

7 years ago

0.0.1-a7

7 years ago

0.0.1-a6

7 years ago

0.0.1-a5

7 years ago

0.0.1-a4

7 years ago

0.0.1-a3

7 years ago

0.0.1-a2

7 years ago

0.0.1-a1

7 years ago

0.0.1

7 years ago