Google-Search-API icon indicating copy to clipboard operation
Google-Search-API copied to clipboard

What to do if I got banned by Google?

Open RayLei opened this issue 6 years ago • 9 comments

It seems I've been banned by google. Now with only one request, I got HTTP 429 error: too many requests. I am wondering how to remove the ban.

Is it possible to add some payment feature? I don't mind to paying google for using their engine if it doesn't cost too much.

RayLei avatar Jan 13 '20 04:01 RayLei

I've had the same issue in the past, just try spoofing your ip address by using a vpn network or some kind of proxies.

aledipa avatar Jan 17 '20 22:01 aledipa

I've had the same issue, just add time.sleep(2) in your loop/requests. The 429 only happens because you are requesting too much in a given amount of time.

ANNwind avatar May 20 '20 13:05 ANNwind

I am getting 429 even if I wait and make single request at the time

GrbavaCigla avatar Sep 17 '20 16:09 GrbavaCigla

I am getting 429 even if I wait and make single request at the time

I have met the same issue. Have you solved it?

bixing-udemy avatar Sep 18 '20 03:09 bixing-udemy

After a day, I am unbanned. I tried tor, but it didn't work. One workaround if you need it quick would be to use something like repl.it and install Google-Search-API package

GrbavaCigla avatar Sep 18 '20 20:09 GrbavaCigla

After a day, I am unbanned. I tried tor, but it didn't work. One workaround if you need it quick would be to use something like repl.it and install Google-Search-API package

Why repl.it can solve this problem?

How about add time.sleep() between different requests? Thanks!

bixing-udemy avatar Dec 01 '20 01:12 bixing-udemy

before I added sleep, they already banned me (for a day I think) and if you want to execute your script in ban period, you can run it with VPN (or some remote server). Since I don't own VPN nor remote server I used repl to run the script.

GrbavaCigla avatar Dec 01 '20 12:12 GrbavaCigla

Have you tried to run requests through a third-party proxy? For example webshare.io, or something like that. I am not sure, but there should be less chance of getting banned because you are going through different ips each time.

caballeto avatar Dec 25 '20 10:12 caballeto

@RayLei Rotate proxies and user agents on each request and add a delay between similar requests. Check the quality of proxies you use, because some cheap proxies are overused and Google responds with captcha more quickly.

If you don't mind paying to extract data from Google search results, you can use SerpApi. It supports everything this package does and much more. It has a 14-days trial.

Disclaimer: I work at SerpApi.

ilyazub avatar Jan 18 '21 09:01 ilyazub