Created
June 1, 2016 12:23
-
-
Save UndergroundLabs/50c40b6c8c7ea13744a03423110a6730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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