You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you need to offset the results that are returned, then just pass the optional "start" parameter into the google function.
This will return from the 3rd page of results:
google ('test query', 20, ( err, res ) => {
if (err) console.error(err)
for (var i = 0; i < res.links.length; ++i) {
var link = res.links[i];
console.log(link.title + ' - ' + link.href)
console.log(link.description + "\n")
}
if (nextCounter < 4) {
nextCounter += 1
if (res.next) res.next()
}
})
I want to skip some results that i already visited. How can i skip some results based on a condition in my code?
The text was updated successfully, but these errors were encountered: