Skip to content

Instantly share code, notes, and snippets.

@UndergroundLabs
Created June 1, 2016 12:23
Show Gist options
  • Save UndergroundLabs/50c40b6c8c7ea13744a03423110a6730 to your computer and use it in GitHub Desktop.
Save UndergroundLabs/50c40b6c8c7ea13744a03423110a6730 to your computer and use it in GitHub Desktop.
import google from "google"
google.resultsPerPage = 25
let nextCounter = 0
google('james jeffery', (err, result) => {
if(err) console.error(err);
for(let i = 0; i < result.links.length; ++i) {
let link = result.links[i];
console.log(link.href);
}
if(nextCounter < 4) {
nextCounter += 1;
if(result.next) result.next();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment