GoogleScraper is a nodejs module to extract links from Google SERP.
The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm) or yarn:
npm install google-scraper yarn add google-scraper
const GoogleScraper = require('google-scraper');
const options = {
keyword: "javascript",
language: "fr",
tld:"fr",
results: 100
};
const scrape = new GoogleScraper(options);
scrape.getGoogleLinks.then(function(value) {
console.log(value);
}).catch(function(e) {
console.log(e);
})