The best would be the way the script does it natively, using the *_prepend strings. The reason it is better is because it does the prepending during the line split procedure. This means all lines of the output will contain the prepend.Fire-Fox wrote:Hey
Your right But both works (But witch is the best)
Seems my webhost had a problem, and they seem to have cached the contents of my site and reloaded it all. Their cache is sadly outdated, so I've tried to replace all the files that were added since their last cache back again. Retrying the links should meet with success now, not a static 404 message.Nextron wrote:Ah disregard what I said before.
Anyway I tried to download the latest script from..
http://ereader.kiczek.com/incith-google-v1.99c.tcl
And it merely 404's on me.
Anyone happen to have another link to download it from?
Thanks!
Thank you very much my good sirspeechles wrote:Seems my webhost had a problem, and they seem to have cached the contents of my site and reloaded it all. Their cache is sadly outdated, so I've tried to replace all the files that were added since their last cache back again. Retrying the links should meet with success now, not a static 404 message.
Incith:Google v1.9.9c
Excellent! Looking forward to itspeechles wrote:lmao.. great script it is, but most of the praise should be incith's (and to some extent madwoota's as well) since his (their) script is used as the foundation (and is why this script keeps both names intact) to enable all of those extra abilities.
Now about your problem, the answer is complex. Should the script mimic verbatim or should we begin to tailor things... Mostly, I chose to keep the good, the bad, and the ugly and most if not everything is verbatim, no results are missed if at all possible. Every result shows, minus of course the ads google injects. This is intuitive as it mirrors the exact behavior as using a browser and visiting the site itself. People have asked before for what your asking, so as a compromise I can add a variable to the config in the next version to over-ride these subsequent results and give just the "answer" (this will also strip the "XXX results" messages as well when giving the "answer"). Once something breaks, expect to see "ShortAnswers" as a config option...
Code: Select all
Tcl error in file 'eggy.conf':
can't read "html": no such variable
while executing
"regexp -- {<div class=med style=".*?"><br>(.+?)<br><br>} $html - no_search"
(file "scripts/incith-google-v1.99c.tcl" line 1)
invoked from within
"source scripts/incith-google-v1.99c.tcl"
(file "eggy.conf" line 207)
* CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Yep, google is always modifying their templates and engines, but this is a small problem to fix. In fact, already fixed it the moment it broke was just waiting for someone to speak up here to release a new version.. heheggysoldier wrote:Just wanted to say thanks. This is a really awesome script, love it
1 problem: !news isn't working.
The problem is, your injecting an english word "for" into that reply. This is not how the script works. Everything is read dynamically and verbatim from the webpage in the language chosen. It is then parsed into segments and formatted for display onto irc. Most every single word you see displayed is read from the webpage, script generated error messages will of course always be in english and I'm english. But for everything else, using the country switch will keep everything in the language chosen.eggysoldier wrote:Also, a possible suggestion:
Rather than putting: "#,### results " followed by some results; perhaps it would be nice to put "#,### results for www.google.com/searched+terms " or whatever.
That way if the one someone is looking for isn't found, then there is a nice link for them to click.
Mininova has that appended to the end because of how that part operates. It sorts by top seeds and shows the top few. But what if you wanted to see beyond that? The url is shown for that reason. Perhaps later on this addition can be made to all the other sites this script scrapes, but for sure it won't be today.eggysoldier wrote:You have kind of already done this suggestion on a few search engines, for instance mininova you have:
"### torrents", then some results, and then you put the search url.
It would be nice to have it all on one line (for those of us who /n) or at least in the same place so "### torrents for www.mininova.org/something "
Ideas are always welcome, and yes the script is quite nice when it works correctly.eggysoldier wrote:Just an idea though, and thanks again for an awesome script.
Yep, the single error catch I have for !top and !pop seems to have changed. I've added a second error catch which will now trap their 503 message and spill it onto irc.eggysoldier wrote:EDIT:
I also get: "Tcl error [incith::google::public_message]: can't read "date": no such variable"
when I run: "!top pc"
Now when the bot attempts to split this the old way (the bad way), let's say the split will occur within the bold region, like below for example:Hello everyone, this part is entirely in bold for a reason to show what happens when something tries to split it and tries to render the remaining segments of that line onto irc, something will break, let's watch
Notice what happened? Where'd the bold go on the second line? Why is it switched??! With the new split method (the good way) this will never occur, bolds and underlines will be kept intact throughout the split, like below for example:<bot> Hello everyone, this part is entirely in bold for a reason to show what happens when something tries to split it and tries
<bot> to render the remaining segments of that line onto irc, something will break, let's watch
Perfection. This is how the script now handles these line splits. *insert applause here*<bot> Hello everyone, this part is entirely in bold for a reason to show what happens when something tries to split it and tries
<bot> to render the remaining segments of that line onto irc, something will break, let's watch