google-search-scraper-nodejs
v1.0.2
Published
A nodejs package to search keyword on google and scrape search results data.
Downloads
2
Maintainers
Readme
Google-Search-Scraper-Nodejs is a nodejs package to search keyword on google and fetch search results using browser automation. It currently runs only on windows.
Installation
npm install google-search-scraper-nodejs
Example 1
In this example we first import package, then we search a keyword and fetched results.
var google=require("google-search-scraper-nodejs");
function get_data(response){
var data=response["body"]
console.log("data",data)
}
function fetch_results(){
google.search_results(get_data)
google.search("shoes",fetch_results)
Example 2
In this example we first import package, then we search a keyword in images and fetched results.
var google=require("google-search-scraper-nodejs");
function get_data(response){
var data=response["body"]
console.log("data",data)
}
function fetch_results(){
google.search_image_results(get_data)
}
google.search_images("shoes",fetch_results)
Youtube Video
DataKund
datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.
Import
var google=require("google-search-scraper-nodejs");
Search a keyword
google.search("shoes")
Search a keyword on images
google.search_images("shoes")
Get search results
google.search_results()
Get search image results
google.search_image_results()
Click on next page
google.click_next()
Scroll
google.scroll()