Hey brother dude...
First off many thanks for the super google script... was working like a treat until recently. Seems to be the case that google have added some user-agent checking now and unfortunately this means sgoogle doesn't work any more... a snippet of debug:
Code: Select all
[19:03:38] eggdrop@solareclypse /home/eggdrop/ca_irc/scripts# fg
telnet localhost 5166 (wd: ~/ca_irc)
.google test
[15:03] DEBUG: Query built (http://www.google.com/search?q=test&num=1)
[15:03] DEBUG: Contacting website...
[15:03] DEBUG: Got state (HTTP/1.0 403 Forbidden)
Could not find results for test (Error: Forbidden)
[15:03] [SG] (Pline) munk requested test but got an error: Forbidden.
I did a bit of research and it looks like the
original was fixed very recently:
Code: Select all
# google.tcl v0.2.1
#
# ...
#
# by aNa|0Gue - analogue@glop.org - http://www.glop.org/
#
# 04/17/2002 v0.2.1 useragent fix by FAN
I did try and modify the user-agent string in your tcl script, but had no joy (it was the first time I'd attempted any tcl;()...
Any chance you could perhaps add a user-agent variable at the head of the script that's utilized in the call to the 'config' http method (if that's the right terminology!)? Here's my feeble effort at testing stuff out:
Code: Select all
if {!($sgoogle_proxy == "")} {
http::config -proxyhost [lindex [split $sgoogle_proxy {:}] 0] -proxyport [li
ndex [split $sgoogle_proxy {:}] 1] -useragent "Mozilla/4.72 [en] (X11; I; FreeBS
D 5.0-20000506-CURRENT i386)"
#http::config -proxyhost [lindex [split $sgoogle_proxy {:}] 0] -proxyport [l
index [split $sgoogle_proxy {:}] 1] -useragent httpcopy
}
Thanx in advance,
Jez
_________________
www.freebsd.org - you know it makes sense.
<font size=-1>[ This Message was edited by: munk on 2002-04-27 22:13 ]</font>
<font size=-1>[ This Message was edited by: munk on 2002-04-27 22:13 ]</font>