line 463euphoriac 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
Code: Select all
- regexp -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html - link desc
+ regexp -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html - link desc
Code: Select all
- regsub -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html {} html
+ regsub -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html {} html
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?
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...hehc0nv1ct 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.
.: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*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/
Thanks for the fix.speechles wrote: line 463line 464Code: Select all
- regexp -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html - link desc + regexp -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html - link desc
This will fix it to remove that annoyance.Code: Select all
- regsub -- {<div class=g.*?<a.*?href="(.+?)".*?>(.+?)</a>} $html {} html + regsub -- {<div class=g(?!b).*?<a href="(.+?)".*?>(.+?)</a>} $html {} html
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
rix wrote:With speechless's 1.94:
With 1.95 there's no result at all! :SCode: 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
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
reget the script, there was a bug in it early on.. i've since corrected that with a better parser which fixes this problem.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
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/