| View previous topic :: View next topic |
| Author |
Message |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri Aug 24, 2007 9:29 pm Post subject: |
|
|
| tmyoungjr wrote: | any thoughts? using
#-----------------------------------------------------------------------------#
# incith:google v1.8.7c#
with no changes at all to the config file. |
The usual cause of this is your bot isn't voiced (+v) and the channel #chat is moderated (+m).
| Code: | proc public_message {nick uhand hand chan input} {
if {[lsearch -exact [channel info $chan] +google] != -1} {
# do stuff
} |
That code right there is the strandard straight forward chanset +google detection and indeed this works. I'm gonna assume the cause above is your issue.  |
|
| Back to top |
|
 |
madwoota Halfop
Joined: 09 Aug 2005 Posts: 53
|
Posted: Fri Aug 24, 2007 10:47 pm Post subject: |
|
|
| br00 wrote: |
i've tried fresh clean latest tcl and no difference (using incith:google-1.8.7c at the moment), any help?
|
The 1.8.7c available here is the exact same version I am running on my bot. I've checked it with diff -u and it finds nothing. Sorry, but, no, I don't have any great ideas. Tried killing & restarting your bot ?
| tmyoungjr wrote: |
in #chat my bot doesn't respond at all and i dont get any errors while watching the terminal, nor in the log.
|
Run .binds in your bot console, look for the line as per below.
The "Hits" is a counter for how many times the bot has used that bind.
| Code: | <|EggDrop|> [12:35] #madwoota# binds
<|EggDrop|> Command bindings:
<|EggDrop|> TYPE FLGS COMMAND HITS BINDING (TCL)
<|EggDrop|> pubm -|- * 652 incith::google::public_message |
Now, run a !g test in #bottest, check .binds again, see that the HITS have gone up. Then do the same in #chat, check the .binds again. If you see the hit counter increment, then you know the bot actually received it and processed it, and providing all went well, probably spewed out some data. I'm guessing you're seeing a network or channel restriction on your bot more than anything (like speechles said above, could just be moderated without +v...).
You could try changing your settings so that the bot responds with a privmsg or privnotice to the public command. This would verify the bot config and script for the channel and show just that channel is blocking. |
|
| Back to top |
|
 |
br00 Voice
Joined: 19 Jun 2006 Posts: 9
|
Posted: Mon Aug 27, 2007 10:34 am Post subject: |
|
|
| madwoota wrote: | | Tried killing & restarting your bot ? |
yep, nothing but "Sorry, no search results were found." every time, no matter what version i use
frustrating to say the least
gonna run it on a bot on another host, see if that makes any difference :/
edit
hmm, works on bots on another host, seems strange tho, every other site parsing script works ok. gotta live with it i suppose |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Mon Aug 27, 2007 1:16 pm Post subject: |
|
|
Does your site that doesn't work.. perhaps test that you can get to google? Can you use 'lynx' or some such? Try and do a google search from your host that isn't working to make sure google actually works, which is what it sounds like, maybe your one host is blocking google for some reason, or google is blocking them.
It is strange tho. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
br00 Voice
Joined: 19 Jun 2006 Posts: 9
|
Posted: Tue Aug 28, 2007 5:49 am Post subject: |
|
|
to be honest i have no idea how to use lynx and am pretty sure it's not available to me in any case
is a purely 'eggdrops only' shell from voodoohosting, who until now i've been more than happy with, very reliable
the fact that the script comes up with the standard google 'cant find anything' result does seem like google isn't blocking/being blocked. |
|
| Back to top |
|
 |
tmyoungjr Voice
Joined: 24 Aug 2007 Posts: 14
|
Posted: Tue Aug 28, 2007 3:01 pm Post subject: |
|
|
| speechles wrote: | | tmyoungjr wrote: | any thoughts? using
#-----------------------------------------------------------------------------#
# incith:google v1.8.7c#
with no changes at all to the config file. |
The usual cause of this is your bot isn't voiced (+v) and the channel #chat is moderated (+m).
| Code: | proc public_message {nick uhand hand chan input} {
if {[lsearch -exact [channel info $chan] +google] != -1} {
# do stuff
} |
That code right there is the strandard straight forward chanset +google detection and indeed this works. I'm gonna assume the cause above is your issue.  |
i had thought about that - however the particular channel has nothing on it (no +m or +v going on). the interesting thing is it "Just started working" after we lost connectivity for a day or so. once things were back to normal all was well. my only thought is related to your suggestion above. at some point someone was messing with moderation and voicing and the channel was hung up on my bot. he'd respond to anything else (a few scripts i wrote, etc) but the !google one. for now all works. |
|
| Back to top |
|
 |
budsmokr Voice
Joined: 08 Jun 2005 Posts: 2
|
Posted: Wed Sep 05, 2007 1:56 am Post subject: |
|
|
I also have recently been getting "Sorry, no search results were found." for any google search. The only google search function that works is the image search. All other searches give the no search results were found response, and google fight gives a tie every time 0 to 0.
This has been ongoing for about a month now. The fact that I can get image search results and the fact that I can ping www.google.com from my host suggest there isn't any sort of blocking going on that I can tell.
Nor am I on the same shell provider that Br00 is on.
Strange indeed. |
|
| Back to top |
|
 |
madwoota Halfop
Joined: 09 Aug 2005 Posts: 53
|
Posted: Fri Sep 07, 2007 8:20 am Post subject: |
|
|
I'm beginning to wonder if its not a local google thing.
Where are you ? Do you get redirected to somewhere *other* than www.google.com if you just type www.google.com in your browser ? Whats your 'native' google.com.* ?
The bot should specifically be going to just google.com/search, but perhaps some local sites (like google.com.ar or something) are not working. |
|
| Back to top |
|
 |
budsmokr Voice
Joined: 08 Jun 2005 Posts: 2
|
Posted: Sun Sep 09, 2007 5:30 pm Post subject: |
|
|
I am located in Canada. On my local browser, I get redirected to www.google.ca
My shell however, is located in California. By default, I would think that it would default to www.google.com, but I have no way of testing that out that I can think of, as I don't have access to lynx or any other type of browser. If you can think of a way for me to test for sure via my shell from a command line, let me know.
But I think it is a safe assumption it would be going directly to www.google.com, being in California. |
|
| Back to top |
|
 |
br00 Voice
Joined: 19 Jun 2006 Posts: 9
|
Posted: Mon Sep 10, 2007 4:38 am Post subject: |
|
|
same here regarding shell, is in the US so google.com should work fine
pinging www.google.com also works fine
i do know another bot on the same hosts that is having the exact same problem (actually that and budsmokr also having the exact same problem makes me feel a bit better in that it's not just my egg, lol)
it's almost like google itself has blocked searches from some hosts?
whatever it is, it's weird |
|
| Back to top |
|
 |
esycat Voice
Joined: 28 Oct 2007 Posts: 1 Location: Sydney, NSW, Australia
|
Posted: Sun Oct 28, 2007 7:27 am Post subject: |
|
|
RFE: !time or !gt command for "time in" queries (for instance, time in moscow).
Thanks to incith and madwoota for perfect script. :-) |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Oct 28, 2007 11:25 am Post subject: |
|
|
| esycat wrote: | | RFE: !time or !gt command for "time in" queries (for instance, time in moscow). |
It seems silly to dedicate a stand alone trigger to that. You can easily add this proc below into the script, add it directly above ( # define: ). You can then have the script give time within the results using !google time requests....
| Code: | # time:
} elseif {[string match "*src=http://www.google.com/chart?chs*alt=\"Clock\"*" $html] == 1} {
if {![regexp -- {alt="Clock"></td><td valign=top>(.+?)<br>} $html - desc]} {
regexp -- {alt="Clock"></td><td valign=middle>(.+?)</td>} $html - desc
}
regsub -- {alt="Clock"} $html {} html
set link "" |
|
|
| Back to top |
|
 |
rpope904 Voice
Joined: 02 Feb 2008 Posts: 16
|
|
| Back to top |
|
 |
bigpresh Voice
Joined: 04 Feb 2008 Posts: 2
|
Posted: Tue Feb 05, 2008 5:23 am Post subject: |
|
|
Yeah, I'm getting the same issue - presumably Google have changed their page layout slightly. I haven't had a chance to take a proper look but I guess it should be pretty simple to tweak the script to ignore login links. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue Feb 05, 2008 1:26 pm Post subject: |
|
|
| bigpresh wrote: |
Yeah, I'm getting the same issue - presumably Google have changed their page layout slightly. I haven't had a chance to take a proper look but I guess it should be pretty simple to tweak the script to ignore login links. |
Change line 462 & 463 from this:
| Code: | regexp -- {<div class=g>.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html - link desc
regsub -- {<div class=g>.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html {} html |
Change line 462 & 463 to this:
| Code: | regexp -- {<div class=g(?!b).*?<a href="(.+?)".*?>((?!<).+?)</a>} $html - link desc
regsub -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html {} html |
Now I know for a fact this works. You can also try my UNOFFICIAL incith-google 1.9.8 which allows for multilingual abilities, properly encoding/decoding queries, as well as numerous other features/sites included. |
|
| Back to top |
|
 |
|