search-scrape

0.0.10 • Public • Published

Travis CI

Search Scraping

Don't be a dick.

PRs welcome. I'm only updating this when it breaks. Documentation could use some work.

Overview

This system makes use of SpookyJS, which makes use of CasperJS, which makes use of PhantomJS.

var Scraper = require( "search-scape" );

var myScraper = new Scraper( );

myScraper.Search( "Scraping a webpage", function( err, results ){
    if( err ){
        return console.log( err );
    }

    // results is an array of objects.
    // each object contains 'description', 'title', and 'link'.

    console.log( results );
} );
var Scraper = require( "search-scape" );

var myScraper = new Scraper( { port: 8081 } );	// what port spooky will use for communication to casper

myScraper.Search( "Dice on black table", { images: true }, function( err, images ){
    
    // images is an array of urls.

} );

Readme

Keywords

Package Sidebar

Install

npm i search-scrape

Weekly Downloads

10

Version

0.0.10

License

MIT

Last publish

Collaborators

  • robertkeizer