Comments (1)
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()
}
})
from node-google.
Related Issues (20)
- Search Videos HOT 3
- Module stopped working HOT 1
- app completly crash and server restarted sometimes
- ssl https etc
- After searching "google account"; now have error that isnt fixable HOT 1
- Using Proxy HOT 1
- Error in npm package on heroku. HOT 3
- Quick Question
- Searches returning "null"
- not being catch by google( + code contribution ) HOT 1
- HOW to NOT get banned (see a captcha)? HOT 3
- TLD not anymore used by Google, important consequences
- Search Within a Time Span
- Suggestion: google.searchTab('...');
- Can we use your library to improve our tool? HOT 2
- (READ THIS FIRST) - Correct Way to get Google Search Results HOT 2
- vulnerabilities
- Doesn't seem to work anymore HOT 2
- How to get google next page(pagination) data using google NPM? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-google.