This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

incith:google :)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
e
euphoriac
Voice
Posts: 4
Joined: Thu Jul 06, 2006 5:19 pm

Post by euphoriac »

I'm getting a little problem with searching:

".g apple strudel" or anything else gives:

[11:26pm] <@Passion> Google @ http://www.google.com/webhp?hl=en | Apple Strudel - Allrecipes @ http://allrecipes.com/recipe/apple-strudel/detail.aspx | Strudel - Wikipedia, the free encyclop @ http://en.wikipedia.org/wiki/Strudel | Puff Pastry - Recipe Detail - Apple Str @ http://www.puffpastry.com/recipedetail. ... peID=23990

That first link shouldn't be there?

Using incith-google.tcl 1.8.7a
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

euphoriac wrote:I'm getting a little problem with searching:

".g apple strudel" or anything else gives:

[11:26pm] <@Passion> Google @ http://www.google.com/webhp?hl=en | Apple Strudel - Allrecipes @ http://allrecipes.com/recipe/apple-strudel/detail.aspx | Strudel - Wikipedia, the free encyclop @ http://en.wikipedia.org/wiki/Strudel | Puff Pastry - Recipe Detail - Apple Str @ http://www.puffpastry.com/recipedetail. ... peID=23990

That first link shouldn't be there?

Using incith-google.tcl 1.8.7a
line 463

Code: Select all

-          regexp -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html - link desc
+          regexp -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html - link desc
line 464

Code: Select all

-          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: Select all

<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.
c
c0nv1ct
Voice
Posts: 5
Joined: Thu May 17, 2007 2:34 pm

Post by c0nv1ct »

As of today, i'm getting the: https://www.google.com/accounts/Login?c ... _all&hl=en

problem again, using both the official and unofficial versions. :(
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

c0nv1ct wrote:As of today, i'm getting the: https://www.google.com/accounts/Login?c ... _all&hl=en

problem again, using both the official and unofficial versions. :(
impossible, your not using http://ereader.kiczek.com/UNOFFICIAL-in ... -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
proof using your own search terms --- irc wrote:<speechles> !g osx zune
<sp33chy> 1,790,000 results | Portable Media: Zune Now Works With Ma @ http://gizmodo.com/gadgets/portable-med ... 217258.php | Portable Media: Zune Won't Be Mac-Comp @ http://gizmodo.com/gadgets/portable-med ... 201763.php | Zune Video Converter for Mac 2.0 - Rev @
<sp33chy> http://www.downloadpipe.com/audio_multi ... 50071.html | Zune « GracefulFlavor @ http://gracefulflavor.net/tag/technolog ... soft/zune/
.: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.
c
c0nv1ct
Voice
Posts: 5
Joined: Thu May 17, 2007 2:34 pm

Post by c0nv1ct »

you are right, i had 1.94 of your unofficial script, works now with 1.95. thanks bud...
e
euphoriac
Voice
Posts: 4
Joined: Thu Jul 06, 2006 5:19 pm

Post by euphoriac »

speechles wrote: line 463

Code: Select all

-          regexp -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html - link desc
+          regexp -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html - link desc
line 464

Code: Select all

-          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.
r
rix
Halfop
Posts: 42
Joined: Wed Sep 21, 2005 1:04 pm
Location: Estonia

Post by rix »

With speechless's 1.94:

Code: Select all

[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
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

rix wrote:With speechless's 1.94:

Code: Select all

[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
seperator == ' | ' wrote:<speechles> !g starpump
<sp33chy> 30,000 results | Starpump Foorumid - Powered by XMB @ http://www.starpump.ee/ | Starpump Foorumid - Powered by XMB @ http://www.starpump.ee/viewthread.php | Welcome to starpump co @ http://www.starpump.com/ | Welcome to starpump co @ http://www.starpump.com/affinity01.html
seperator == '\n' wrote:<speechles> !g starpump
<sp33chy> 30,000 results
<sp33chy> Starpump Foorumid - Powered by XMB @ http://www.starpump.ee/
<sp33chy> Starpump Foorumid - Powered by XMB @ http://www.starpump.ee/viewthread.php
<sp33chy> Welcome to starpump co @ http://www.starpump.com/
<sp33chy> Welcome to starpump co @ http://www.starpump.com/affinity01.html
reget the script, there was a bug in it early on.. i've since corrected that with a better parser which fixes this problem.
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Temporary fixed version until madwoota updates: incith-google-iCVS-061007.tcl.gz (updated again @ 6:40PM MDT)

As a side note, I think the google fork deserves a thread of its own.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
l
luminoso
Voice
Posts: 7
Joined: Mon Jul 02, 2007 7:59 am

Post by luminoso »

i'm having a strange behavior..

OS: Linux 2.6.20-hardened-r2-alphy
Tcl library: /usr/lib64/tcl8.4
Tcl version: 8.4.14 (header version 8.4.14)

13:01:16 <@luminoso> !google eggdrop
13:01:20 <@mortalboy87> Sign in @
https://www.google.com/accounts/Login?c ... _all&hl=en |
Eggheads.org - Main Index @ http://www.eggheads.org/ | Eggheads.org - Downloads @ http://www.eggheads.org/downloads/ | slennox's eggdrop
page @ http://www.egghelp.org/ | Eggdrop - Wikipedia, the free encyclop @ http://en.wikipedia.org/wiki/Eggdrop

that "sign in @" are always shown. :\
m
madwoota
Halfop
Posts: 53
Joined: Tue Aug 09, 2005 12:27 am

Post by madwoota »

luminoso wrote:13:01:16 <@luminoso> !google eggdrop
13:01:20 <@mortalboy87> Sign in @
https://www.google.com/accounts/Login?c ... _all&hl=en

Code: Select all

[23:11] <madwoota> !g eggdrop
[23:11] <|EggDrop|> Eggheads.org - Main Index @ http://www.eggheads.org/
Always check here for the "current" release of incith-google:
http://www.woota.net/~madwoota/incith-g ... ent.tar.gz

-madwoota
l
luminoso
Voice
Posts: 7
Joined: Mon Jul 02, 2007 7:59 am

Post by luminoso »

sorry! fixed!
b
br00
Voice
Posts: 9
Joined: Mon Jun 19, 2006 8:09 am

Post by br00 »

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?
t
tmyoungjr
Voice
Posts: 14
Joined: Fri Aug 24, 2007 3:30 pm

Post by tmyoungjr »

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.
Post Reply