MarioVilas / googlesearch

Google search from Python (unofficial).
BSD 3-Clause "New" or "Revised" License
1.15k stars 393 forks source link

Less Hits than expected #37

Closed agneet42 closed 6 years ago

agneet42 commented 7 years ago

I am doing this :

for url in search("Microsoft", stop = 500):

It gives me 137 links instead of 500. Any hints as to why?

brandomr commented 7 years ago

@agneet42 you're IP is probably getting flagged by Google

agneet42 commented 7 years ago

@brandomr, thanks for the quick reply. Is there a way around to avoid being flagged?

brandomr commented 7 years ago

@agneet42 first I'd confirm that's happening by trying to re-run the query or other queries. If you receive low or no results then that is probably indeed the issue.

If you are running this locally on your computer without a VPN you could try going to google.com and running a search in browser and seeing if you are thrown a captcha.

Are you getting any error or anything like that?