modubot / modubot.js

Modubot: the scalable and extensible IRC bot.
https://modubot.net
BSD 3-Clause "New" or "Revised" License
19 stars 3 forks source link

Google is blocking bots. #56

Closed ZacharyDuBois closed 8 years ago

ZacharyDuBois commented 9 years ago

See log.

[22:44:27] -TokyoBot-   Error: Error on response (403):null : <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times col
[22:44:28] -TokyoBot-   size=10>g</font><font face=times color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we
[22:44:30] -TokyoBot-   right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>
reynir commented 9 years ago

The google library doesn't use the official API. Google is known to block "bots" whenever. The alternative is to use the official API, but it requires an API key, might cost money, and is probably not as "nice" to use. This would require more configuration for the user (acquiring a key and setting it up in the bot configuration).

ZacharyDuBois commented 9 years ago

Idk. All I know is it is loosing functionality .-.

ghost commented 8 years ago

Fix ur bot:

Our systems have detected unusual traffic from your computer network. Please try your request again later. Why did this happen?

This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the Terms of Service. The block will expire shortly after those requests stop.

This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests. If you share your network connection, ask your administrator for help — a different computer using the same IP address may be responsible. Learn more

Sometimes you may see this page if you are using advanced terms that robots are known to use, or sending requests very quickly.

IP address: REDACTED Time: 2016-04-02T03:10:22Z URL: http://www.google.com/

kamaln7 commented 8 years ago

Sorry, there's nothing that I can do about this except for using the paid google API which is not that good of an idea.

ZacharyDuBois commented 8 years ago

clears throat

http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=DigitalOcean

kamaln7 commented 8 years ago

clears throat v2.0

54b36a3c2bb0fb55ab8c31cd14a64f485c2d9c5f