New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

search-scrape

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

search-scrape

Search Scraper

latest
Source
npmnpm
Version
0.0.10
Version published
Maintainers
1
Created
Source

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.

} );

Keywords

duck

FAQs

Package last updated on 08 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts