Node.js - Search Engine Parser
This module allows you to search google by scraping the results. You can add your own search engine.
Installation
npm install --save search-engine-parser
Built-in strategies
- Google Images
Usage
This prints out the first 20 search results of the query kitten
in Google Images.
var createParser = ; var googleImagesParser = ; googleImagesParser;
Own search engine
You need to implement Search Strategy interface:
var cheerio = ; var SearchEngineStrategy = { return "http://your-search-engine.com?query=" + query; } { var $ = cheerio; var imageLinks = ; var imageHrefs = ; imageLinks; ; };
Example Google Images strategy.
License
Licensed under MIT.