| View previous topic :: View next topic |
| Author |
Message |
euphoriac Voice
Joined: 06 Jul 2006 Posts: 4
|
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Jun 07, 2007 9:12 pm Post subject: |
|
|
line 463 | Code: | - regexp -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html - link desc
+ regexp -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html - link desc | line 464 | Code: | - regsub -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html {} html
+ regsub -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html {} html |
This will fix it to remove that annoyance. Conversely, you can read back a few posts in this very thread and find my hacked contribution, which includes this new addition found below, google translations :O | Code: | <speechles> !trans en@fr hi french people how are you today?
<sp33chy> Google says: (en->fr) salut les français comment allez vous aujourd'hui ?
<speechles> !trans en@it hi italians. what's up?
<sp33chy> Google says: (en->it) ciao italiani. che cosa è in su? |
.:edit:. Seems for celebrities, eg. paris hilton, google injects image/news results as a header to it's search results effectively causing 1st result to be read wrong. Updated the regexp/regsub parser change above to reflect this fix, also updated unofficial build with this.
Last edited by speechles on Sat Jun 09, 2007 1:41 am; edited 6 times in total |
|
| Back to top |
|
 |
c0nv1ct Voice
Joined: 17 May 2007 Posts: 5
|
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri Jun 08, 2007 12:11 am Post subject: |
|
|
impossible, your not using http://ereader.kiczek.com/UNOFFICIAL-incith-google-v1.95.tcl more than likely, which is my most current unofficial build. To fix madwoota's build, the official, use my advice above. Remember to read back into threads before posting...heh
.:edit:. Corrected minor problem with parser reading 1st entry incorrectly when searching celebrity names, specifically Paris Hilton. Now it should read 100% of search results correctly *crosses fingers*
Last edited by speechles on Fri Jun 08, 2007 4:26 pm; edited 1 time in total |
|
| Back to top |
|
 |
c0nv1ct Voice
Joined: 17 May 2007 Posts: 5
|
Posted: Fri Jun 08, 2007 5:41 am Post subject: |
|
|
| you are right, i had 1.94 of your unofficial script, works now with 1.95. thanks bud... |
|
| Back to top |
|
 |
euphoriac Voice
Joined: 06 Jul 2006 Posts: 4
|
Posted: Sat Jun 09, 2007 3:04 am Post subject: |
|
|
| speechles wrote: |
line 463 | Code: | - regexp -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html - link desc
+ regexp -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html - link desc | line 464 | Code: | - regsub -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html {} html
+ regsub -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html {} html |
This will fix it to remove that annoyance. |
Thanks for the fix. |
|
| Back to top |
|
 |
rix Halfop
Joined: 21 Sep 2005 Posts: 42 Location: Estonia
|
Posted: Sun Jun 10, 2007 1:40 pm Post subject: |
|
|
With speechless's 1.94:
| Code: | [20:39:33] <rix> !g starpump
[20:39:34] <Leelo> </nobr></div><table border=0 cellpadding @ https://www.google.com/accounts/Login?continue=http://www.google.com/search?hl=en&q=starpump&safe=off&btnG=Search&lr=lang_all&num=10&hl=en
[20:39:35] <Leelo> </nobr></div><table border=0 cellpadding @ https://www.google.com/accounts/Login?continue=http://www.google.com/search?hl=en&q=starpump&safe=off&btnG=Search&lr=lang_all&num=10&hl=en
[20:39:36] <Leelo> </nobr></div><table border=0 cellpadding @ https://www.google.com/accounts/Login?continue=http://www.google.com/search?hl=en&q=starpump&safe=off&btnG=Search&lr=lang_all&num=10&hl=en |
With 1.95 there's no result at all! :S |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jun 10, 2007 5:13 pm Post subject: |
|
|
| rix wrote: | With speechless's 1.94:
| Code: | [20:39:33] <rix> !g starpump
[20:39:34] <Leelo> </nobr></div><table border=0 cellpadding @ https://www.google.com/accounts/Login?continue=http://www.google.com/search?hl=en&q=starpump&safe=off&btnG=Search&lr=lang_all&num=10&hl=en
[20:39:35] <Leelo> </nobr></div><table border=0 cellpadding @ https://www.google.com/accounts/Login?continue=http://www.google.com/search?hl=en&q=starpump&safe=off&btnG=Search&lr=lang_all&num=10&hl=en
[20:39:36] <Leelo> </nobr></div><table border=0 cellpadding @ https://www.google.com/accounts/Login?continue=http://www.google.com/search?hl=en&q=starpump&safe=off&btnG=Search&lr=lang_all&num=10&hl=en |
With 1.95 there's no result at all! :S |
reget the script, there was a bug in it early on.. i've since corrected that with a better parser which fixes this problem. |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Jun 10, 2007 8:54 pm Post subject: |
|
|
| incith wrote: | | As a side note, I think the google fork deserves a thread of its own. |
Would definitely be a good idea and stop any confusion between the two which appears to be setting in. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
luminoso Voice
Joined: 02 Jul 2007 Posts: 7
|
|
| Back to top |
|
 |
madwoota Halfop
Joined: 09 Aug 2005 Posts: 53
|
|
| Back to top |
|
 |
luminoso Voice
Joined: 02 Jul 2007 Posts: 7
|
Posted: Tue Jul 03, 2007 1:02 pm Post subject: |
|
|
| sorry! fixed! |
|
| Back to top |
|
 |
br00 Voice
Joined: 19 Jun 2006 Posts: 9
|
Posted: Thu Aug 23, 2007 9:02 am Post subject: |
|
|
for a while now !google has returned "Sorry, no search results were found."
also googlefight returns 0 for all fights (By results on Google: a ties with e on 0! etc etc, for anything)
!images, however, still works fine
i've tried fresh clean latest tcl and no difference (using incith:google-1.8.7c at the moment), any help? |
|
| Back to top |
|
 |
tmyoungjr Voice
Joined: 24 Aug 2007 Posts: 14
|
Posted: Fri Aug 24, 2007 3:53 pm Post subject: |
|
|
single network, 2 channels, bot logged into both. he's not authenticated to nickserv or chanserv (he is owner of #bottest, but im not indentifying him to it in order to keep this as even a test as possible)
#chat
#bottest
in #bottest my bot responds like so :
<timmah> !google cars
<timmahbot> Buy New & Used Cars, Research Prices, @ http://www.cars.com/ | Disney Presents a Pixar film 'Cars' :: @ http://disney.go.com/disneypictures/cars/ | Cars (2006) @ http://www.imdb.com/title/tt0317219/ | New Car Prices, Used Car Pricing, C @ http://www.edmunds.com/
in #chat my bot doesn't respond at all and i dont get any errors while watching the terminal, nor in the log.
.chaninfo
Settings for static channel #bottest:
Protect modes (chanmode): +tn
Idle Kick after (idle-kick): DON'T!
stopnethack: DON'T!
aop-delay: 5:30
revenge-mode: 0
ban-time: 120
exempt-time: 60
invite-time: 60
Other modes:
-inactive +statuslog -secret +shared
+greet -seen +cycle +dontkickops
+protectops -protectfriends -revenge -revengebot
-bitch -autoop -autovoice -nodesynch
-enforcebans +dynamicbans +userbans -autohalfop
-protecthalfops
+dynamicexempts +userexempts +dynamicinvites +userinvites
User defined channel flags:
+google -op -voice
flood settings: chan ctcp join kick deop nick
number: 10 3 5 3 3 5
time : 60 60 60 10 10 60
[15:51] #timmah# chaninfo #bottest
.chaninfo #chat
Settings for static channel #chat:
Protect modes (chanmode): +tn
Idle Kick after (idle-kick): DON'T!
stopnethack: DON'T!
aop-delay: 5:30
revenge-mode: 0
ban-time: 120
exempt-time: 60
invite-time: 60
Other modes:
-inactive +statuslog -secret +shared
+greet -seen +cycle +dontkickops
+protectops -protectfriends -revenge -revengebot
-bitch -autoop -autovoice -nodesynch
-enforcebans +dynamicbans +userbans -autohalfop
-protecthalfops
+dynamicexempts +userexempts +dynamicinvites +userinvites
User defined channel flags:
+google -op -voice
flood settings: chan ctcp join kick deop nick
number: 10 3 5 3 3 5
time : 60 60 60 10 10 60
[15:51] #timmah# chaninfo #chat
any thoughts? using
#-----------------------------------------------------------------------------#
# incith:google v1.8.7c#
with no changes at all to the config file. |
|
| Back to top |
|
 |
|