Comments (4)
Please post formatted code. It's really difficult to read as is. Thanks
from node-google-search-scraper.
The code was formatted when I posted it. It was also inserted into the post via "Insert code".
The best I can do to make it more view-able is put it in a text file.
limit_problem.txt.txt
from node-google-search-scraper.
The best you can do is click on "Styling with Markdown ..." below the comment box and learn how to style comments on github.
If you don't bother to do that don't expect me to bother considering your issue.
from node-google-search-scraper.
I have had the same problem while coding my Discord bot.. it always returned 9 urls even though I had set my limit to 1. I was trying to fix it by making small changes in the node_modules/google-search-scraper/index.js and made it work by adding
newResults.length = 1;
to the file just before
newResults.forEach(function(result) {
callback(null, result);
});
And then it respected the limit I set in my Discord bot code.
Don't ask me why this works though, I was just trying some things and apparently this worked :D
from node-google-search-scraper.
Related Issues (16)
- return more than just url? HOT 6
- How would you use multiple keywords? HOT 1
- Do something when full search is done HOT 3
- How to use with proxy?
- Exception met with certain queries HOT 3
- Error: getaddrinfo ENOTFOUND www.google.comundefined www.google.comundefined:443 HOT 2
- url.js:103 throw new TypeError('Parameter "url" must be a string, not ' + typeof url); ^ TypeError: Parameter "url" must be a string, not undefined at Url.parse (url.js:103:11) HOT 1
- TypeError: Parameter "url" must be a string, not undefined
- How would you combing all the URLs in a single array? HOT 1
- Umlauts are not supported
- Error: getaddrinfo ENOTFOUND www.google.com HOT 2
- not working HOT 2
- Captcha decoding not working HOT 8
- How to get multiple results? HOT 1
- is the min limit 10? HOT 1
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-search-scraper.